diff options
author | Gerald Combs <gerald@wireshark.org> | 2009-12-24 21:23:38 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2009-12-24 21:23:38 +0000 |
commit | afc57e6face418054c17fa99877be1501eea62e0 (patch) | |
tree | de42365e7f2226a90a39c9575bda87f1b994170b /epan/oids.c | |
parent | ad69bdd7eaf7bdc9900436cdde6d8ed8eddf8f5c (diff) |
Add NULL pointer checks. Fixes the fuzz crash in bug 4351.
svn path=/trunk/; revision=31362
Diffstat (limited to 'epan/oids.c')
-rw-r--r-- | epan/oids.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/oids.c b/epan/oids.c index a5514fc56e..d59a73aa3e 100644 --- a/epan/oids.c +++ b/epan/oids.c @@ -746,7 +746,7 @@ guint check_num_oid(const char* str) { guint n = 0; D(8,("check_num_oid: '%s'",str)); - if (*r == '.' || *r == '\0') return 0; + if (!r || *r == '.' || *r == '\0') return 0; do { D(9,("\tcheck_num_oid: '%c' %d",*r,n)); |