summaryrefslogtreecommitdiffstats
path: root/nsscommon.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-01-28 21:00:58 -0800
committerJosh Stone <jistone@redhat.com>2010-01-28 21:00:58 -0800
commitf75409719f120a3dbee66d761cf23a64092d1414 (patch)
treea35e8f9c3d1cf317b2a989df10e5835dcc461670 /nsscommon.h
parent15b2e969f0f67b2259e0345a446001ac80179968 (diff)
downloadsystemtap-steved-f75409719f120a3dbee66d761cf23a64092d1414.tar.gz
systemtap-steved-f75409719f120a3dbee66d761cf23a64092d1414.tar.xz
systemtap-steved-f75409719f120a3dbee66d761cf23a64092d1414.zip
PR11234: Ensure __get_argv doesn't overflow
That function was calling strlcpy as if the return value was the number of bytes copied, but strlcpy actually returns the length of the input string. We now use min() to handle the case when it's bigger than the buffer length, and drop out of the loop when that happens.
Diffstat (limited to 'nsscommon.h')
0 files changed, 0 insertions, 0 deletions