diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-12-24 21:23:38 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-12-24 21:23:38 +0000 |
commit | ab1f7c81d15e64e36b94b933eb4eb96216139f6d (patch) | |
tree | de42365e7f2226a90a39c9575bda87f1b994170b /epan/oids.c | |
parent | db5f9741bf98b14756cdebeb90736e34d6b422b8 (diff) |
Add NULL pointer checks. Fixes the fuzz crash in bug 4351.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31362 f5534014-38df-0310-8fa8-9805f1628bb7
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)); |