diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-09-28 12:17:02 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-09-28 12:17:02 -0700 |
commit | 0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d (patch) | |
tree | 28f40b67a679369be233efba9761a2616dbfac03 /src/aig | |
parent | 98e377bdfff98a99f4c765a52cfa8023b4f0eb60 (diff) | |
download | abc-0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d.tar.gz abc-0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d.tar.bz2 abc-0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d.zip |
Adding out-of-bounds checks to AIGER readers.
Diffstat (limited to 'src/aig')
-rw-r--r-- | src/aig/gia/giaAiger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aig/gia/giaAiger.c b/src/aig/gia/giaAiger.c index 2f2cab2b..cbcaf856 100644 --- a/src/aig/gia/giaAiger.c +++ b/src/aig/gia/giaAiger.c @@ -369,7 +369,7 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS // read signal names if they are of the special type pCur = pSymbols; - if ( *pCur != 'c' ) + if ( pCur < (unsigned char *)pContents + nFileSize && *pCur != 'c' ) { int fBreakUsed = 0; unsigned char * pCurOld = pCur; |