Wireshark-bugs: [Wireshark-bugs] [Bug 7359] SNMP dissector bug: STATUS_INTEGER_DIVIDE_BY_ZERO
Date: Wed, 4 Jul 2012 14:50:35 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7359

--- Comment #4 from Guy Harris <guy@xxxxxxxxxxxx> 2012-07-04 14:50:34 PDT ---
Can the password handed to the pass2key routine in set_ue_keys() ever have a
length of 0?  They appear to be set from a user preference; what if the user
specifies an empty password?

If it can be zero-length, then the modulo operations in
snmp_usm_password_to_key_md5() and snmp_usm_password_to_key_sha1() would end up
doing a divide by zero.  I didn't find any obvious division operations, but
those are two modulo operations where the modulus isn't a constant.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.