Comments (1)
The likely fix would be to change the assumption made for ip value in this for
loop
and allow only 6 increments as safe condition for FASTLZ_LEVEL 2. The
assumption of 8
increments is safe only for FASTLZ_LEVEL 1.
275 for(;;)
276 {
277 /* safe because the outer check against ip limit */
278 if(*ref++ != *ip++) break;
279 if(*ref++ != *ip++) break;
280 if(*ref++ != *ip++) break;
281 if(*ref++ != *ip++) break;
282 if(*ref++ != *ip++) break;
283 if(*ref++ != *ip++) break;
284 #if FASTLZ_LEVEL==1
285 if(*ref++ != *ip++) break;
286 if(*ref++ != *ip++) break;
287 #endif
288 while(ip < ip_bound)
289 if(*ref++ != *ip++) break;
290 break;
291 }
Original comment by [email protected]
on 2 Feb 2010 at 10:31
from fastlz.
Related Issues (10)
- 6pack and 6unpack crashes with SIGBUS on sparc undr many compiler/options combinations HOT 1
- bad web link
- 6pack and 6unpack crashes with SIGBUS on sparc undr many compiler/options combinations HOT 2
- decompressor does not work on sparc HOT 1
- 64-bit compiler warnings with Visual Studio 2005
- SEGFAULT on *hslot=ip
- 64-bit support
- Conversion warnings when compiling (int --> flzuint8, flzuint32 --> flzuint8)
- Can read past end of input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlz.