environment variables can alter the base address for shared libraries.
A longish LD_LIBRARY_PATH in this test might lead to a false positive, even if the path is invalid or does not contain any system libraries.
quick example - compare:
LD_LIBRARY_PATH=`perl -e 'print "a"x40960'` ldd /bin/ls
LD_LIBRARY_PATH= ldd /bin/ls
typically lowest-mapped library base address would shift by a few k.
The patch replaces the base addresses in the ldd output. A difference in the actual library path should still get reported.
Log in to post a comment.