]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/commit
Fix possible memory overwrite in init_from_environment().
authorSimon Ruderich <simon@ruderich.org>
Thu, 13 Jun 2013 20:08:08 +0000 (22:08 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 13 Jun 2013 20:08:08 +0000 (22:08 +0200)
commit59375c2b7949791d8cad8e5cebde2649bac83ec8
tree73ccf72155ba7608c5e207e2e60ffac18c949ba3
parentf30dbbd26d18e3014762ccc37b8e5ab65b596b35
Fix possible memory overwrite in init_from_environment().

It was possible for a user to overwrite memory at a relative location
with 1 by passing a negative file descriptor.
src/trackfds.h
tests/Makefile.am
tests/example_environment.expected [new symlink]
tests/example_environment_empty.expected [new file with mode: 0644]
tests/lib.sh
tests/test_environment.sh [new file with mode: 0755]