diff options
author | Ilya Etingof <etingof@gmail.com> | 2018-04-21 23:16:17 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2018-04-21 23:16:34 +0200 |
commit | f1e9f131412949dcf9b906c89d809cb834f081f6 (patch) | |
tree | 7c40036211d14dc91fe76e70f52e5b87b89c765c | |
parent | 8935532ee70df78ea73741347c81b6b6d5fea57a (diff) | |
download | pysnmp-git-f1e9f131412949dcf9b906c89d809cb834f081f6.tar.gz |
fix potential infinite loop in GETBULK response builder
-rw-r--r-- | CHANGES.txt | 1 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/cmdrsp.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 7639e71c..6d51f9c6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -19,6 +19,7 @@ Revision 4.4.5, released 2018-04-XX - Fixed zero SNMPv3 boots/time values put in SNMPv3 TRAP messages - Fixed broken InetAddressType rendering caused by a pyasn1 regression - Fixed typo in RFC1158 module +- Fixed possible infinite loop in GETBULK response PDU builder Revision 4.4.4, released 2018-01-03 ----------------------------------- diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py index 3f99f004..94b4d45b 100644 --- a/pysnmp/entity/rfc3413/cmdrsp.py +++ b/pysnmp/entity/rfc3413/cmdrsp.py @@ -289,7 +289,7 @@ class BulkCommandResponder(CommandResponderBase): R = max(len(reqVarBinds) - N, 0) if R: - M = min(M, self.maxVarBinds / R) + M = min(M, self.maxVarBinds // R) debug.logger & debug.flagApp and debug.logger('handleMgmtOperation: N %d, M %d, R %d' % (N, M, R)) |