Red Hat Bugzilla – Bug 714154
overrunning array when executing nss_pcache
Last modified: 2015-01-04 18:49:21 EST
Description of problem: mod_nss-1.0.8/nss_engine_init.c:467: overrun-local: Overrunning static array "child_argv", with 5 elements, at position 5 with index variable "5". Version-Release number of selected component (if applicable): mod_nss-1.0.8-12.el6
can you please add some more information about this issue? steps to reproduce and verify?
In the worst case this would result in core dump. mod_nss is allocating an array of 5 elements and writing 6 to it. Through good fortune it isn't overwriting the memory or something else.
Created attachment 516182 [details] Use properly sized static array
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, a static array containing the arguments for launching the nss_pcache command was overflowing the size by one. This could lead to a variety of issues including unexpected termination. This bug has been fixed, and mod_nss now uses properly sized static array when launching nss_pcache.
please add steps to reproduce this issue.
This bug was identified by Coverity. It requires code inspection to verify, we never saw this in the wild.
Will we verify Sanity Only then, that no regressions occur during testing.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1656.html