Parent Directory | Revision Log
|Links to HEAD:||(view) (download) (as text) (annotate)|
fix possible memory read errors when walking arrays the current code will always fetch the arr->eles[n] in array_for_each before doing the n < arr->num check. gcc might optimize it such that the read occurs rather than delaying it until after the loop limit check, but it also might not. at any rate, ASAN catches it and complains mightly. this new method ends up wasting 1 pointer worth of memory, but we wont worry about 4 or 8 bytes per array as this code is not that critical.
update copyright years
allow people to search for multiple libraries (-N) or data sections (-k)
make sure we initialize new string memory
use %zu for size_t instead of casting to random long types
dont need strndup code anymore
allow xstrcat to start off with a NULL destination
For bug #249731, add an xstrndup wrapper, and implement strndup on hosts that don't have it, based on the strndup implementation of sandbox, with a little change to make it C90 compliant.
drop local func decls as we already include xfuncs.h and get them
add missing split xfuncs files
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.
|Powered by ViewVC 1.1.20|