"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fofi/FoFiBase.cc" between
xpdf-4.01.01.tar.gz and xpdf-4.02.tar.gz

About: Xpdf is a PDF viewer for X.

FoFiBase.cc  (xpdf-4.01.01):FoFiBase.cc  (xpdf-4.02)
skipping to change at line 174 skipping to change at line 174
} }
x = 0; x = 0;
for (i = 0; i < size; ++i) { for (i = 0; i < size; ++i) {
x = (x << 8) + file[pos + i]; x = (x << 8) + file[pos + i];
} }
return x; return x;
} }
GBool FoFiBase::checkRegion(int pos, int size) { GBool FoFiBase::checkRegion(int pos, int size) {
return pos >= 0 && return pos >= 0 &&
pos + size >= pos && size >= 0 &&
size <= INT_MAX - pos &&
pos + size <= len; pos + size <= len;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)