Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpm-ac: fix integer overflow on allocation - v2 #2548

Closed
wants to merge 1 commit into from

Conversation

satta
Copy link
Contributor

@satta satta commented Feb 8, 2017

Resubmission of #2546. Addresses Redmine issues #1827 (https://redmine.openinfosecfoundation.org/issues/1827) and #1843 (https://redmine.openinfosecfoundation.org/issues/1843).

No more scan-build warnings are raised in the affected source file any more.

I ran the Dockerized prscript, builds completed successfully:

The size of a memory buffer to be allocated was kept in a signed int
instead of a size_t, leading to an overflow when large lists of long
and diverse patterns cause the amount of AC states to blow up (>2GB).
Fixes Redmine issues OISF#1827 and OISF#1843.

Signed-off-by: Sascha Steinbiss <sascha@steinbiss.name>
@satta satta changed the title mpm-ac: fix integer overflow on allocation mpm-ac: fix integer overflow on allocation - v2 Feb 8, 2017
@inliniac inliniac mentioned this pull request Feb 9, 2017
@inliniac
Copy link
Contributor

inliniac commented Feb 9, 2017

Merged through #2550, thanks Sascha!

@inliniac inliniac closed this Feb 9, 2017
@satta satta deleted the fix-integer-overflow-1827-1843-v2 branch February 9, 2017 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants