Piker-Alpha / LZVN

C-Style conversion of lzvn_decode
43 stars 15 forks source link

Case LZVN_7 #1

Open pruten opened 9 years ago

pruten commented 9 years ago

In case LZVN_7,

compBufferPointer = length;
compBufferPointer -= negativeOffset;  // sub %r12,%r8
if (compBufferPointer < negativeOffset) // jb Llzvn_exit
{
    return 0;
}

The condition should probably be

if (length < negativeOffset)

since compBufferPointer has already been modified.