plan9fox/sys
cinap_lenrek bba6d26ca2 cpp: fix memory corruption due to input buffer relocation
the dynamic input buffer resize code (fillbuf()) is broken as
the calling code assumes that memory wont relocate. instead
of trying to work out all the cases where this happens, i'm
getting rid of fillbuf() and just read the whole file into
memory in setsource().

the bug could be reproduced with something as simple as:

@{for(i in `{seq 1 10000}){echo $i ', \'; }} | cpp
2015-09-24 05:13:03 +02:00
..
doc /sys/doc: permissions for cleanps, mkdirlist, mkfilelist 2012-10-20 19:09:54 +02:00
games/lib fortunes: Please be respectful in this forum. 2015-09-03 17:01:49 -04:00
include libsec: implement dh parameter signature verification, stop lying about non-rsa ciphers, fix memory leaks in X509 code 2015-09-22 18:10:52 +02:00
lib /sys/lib/dist/ndb/common: correct authdom=inri 2015-09-16 13:29:04 -04:00
man ircrc: add -P option for server password (thanks, nick) 2015-09-19 14:03:22 -04:00
src cpp: fix memory corruption due to input buffer relocation 2015-09-24 05:13:03 +02:00