summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/overflow-get_argv.stp
Commit message (Collapse)AuthorAgeFilesLines
* Revert "PR11234: Ensure __get_argv doesn't overflow"Josh Stone2010-02-041-62/+0
| | | | This reverts commit f75409719f120a3dbee66d761cf23a64092d1414.
* Fix uninitialization error on gcc 4.1.xWenji Huang2010-02-011-1/+1
| | | | * testsuite/systemtap.base/overflow-get_argv.stp: Initialize var.
* PR11234: Ensure __get_argv doesn't overflowJosh Stone2010-01-281-0/+62
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.