diff options
| author | Philip <pipcet@gmail.com> | 2015-04-30 21:31:32 +0000 |
|---|---|---|
| committer | Philip <pipcet@gmail.com> | 2015-04-30 21:35:21 +0000 |
| commit | 951a43ea6c77436209c3dc974d8b18e5b2e87936 (patch) | |
| tree | 41e47cb9200a64397409a5b18447a571f7593573 /tccpp.c | |
| parent | 2e04fa8872f38aea4eb96fd3424c3d6762b5262d (diff) | |
| download | tinycc-951a43ea6c77436209c3dc974d8b18e5b2e87936.tar.gz tinycc-951a43ea6c77436209c3dc974d8b18e5b2e87936.tar.bz2 | |
fix a potential end-of-buffer issue in tccelf.c
also read characters one at a time when PARSE_DEBUG is set; after this
patch, things seem to work with that.
Diffstat (limited to 'tccpp.c')
| -rw-r--r-- | tccpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -386,7 +386,7 @@ static int tcc_peekc_slow(BufferedFile *bf) if (bf->buf_ptr >= bf->buf_end) { if (bf->fd != -1) { #if defined(PARSE_DEBUG) - len = 8; + len = 1; #else len = IO_BUF_SIZE; #endif |
