Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "PR11234: Ensure __get_argv doesn't overflow" | Josh Stone | 2010-02-04 | 1 | -62/+0 |
| | | | | This reverts commit f75409719f120a3dbee66d761cf23a64092d1414. | ||||
* | Fix uninitialization error on gcc 4.1.x | Wenji Huang | 2010-02-01 | 1 | -1/+1 |
| | | | | * testsuite/systemtap.base/overflow-get_argv.stp: Initialize var. | ||||
* | PR11234: Ensure __get_argv doesn't overflow | Josh Stone | 2010-01-28 | 1 | -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. |