summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-09-28 12:17:02 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-09-28 12:17:02 -0700
commit0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d (patch)
tree28f40b67a679369be233efba9761a2616dbfac03 /src/base
parent98e377bdfff98a99f4c765a52cfa8023b4f0eb60 (diff)
downloadabc-0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d.tar.gz
abc-0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d.tar.bz2
abc-0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d.zip
Adding out-of-bounds checks to AIGER readers.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/io/ioReadAiger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/io/ioReadAiger.c b/src/base/io/ioReadAiger.c
index ab865326..1d9ca877 100644
--- a/src/base/io/ioReadAiger.c
+++ b/src/base/io/ioReadAiger.c
@@ -477,7 +477,7 @@ Abc_Ntk_t * Io_ReadAiger( char * pFileName, int fCheck )
// read the names if present
pCur = pSymbols;
- if ( *pCur != 'c' )
+ if ( pCur < pContents + nFileSize && *pCur != 'c' )
{
int Counter = 0;
while ( pCur < pContents + nFileSize && *pCur != 'c' )