dnp3: avoids DOS by too long loop over null-sized objects

pull/5627/head
Philippe Antoine 6 years ago committed by Victor Julien
parent 5749024e3f
commit 15980af7de

@ -432,6 +432,9 @@ static int DNP3DecodeObjectG{{object.group}}V{{object.variation}}(const uint8_t
{% endfor %}
{% endif %}
if (*len < count/8) {
goto error;
}
while (count--) {
object = SCCalloc(1, sizeof(*object));

Loading…
Cancel
Save