From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Library:Liblz4" |
|---|
| claim | "LZ4F_errorCodes of liblz4 1.10.0: 0 OK_NoError to 24 ERROR_maxCode; LZ4F functions return the error as (size_t)-code, and LZ4F_isError(r) is r > (size_t)-ERROR_maxCode." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Liblz4" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "LZ4F_errorCodes" |
|---|
| underlying_type | "int" |
|---|
| values | | name | "LZ4F_OK_NoError" |
|---|
| value | 0 |
|---|
|
| name | "LZ4F_ERROR_GENERIC" |
|---|
| value | 1 |
|---|
|
| name | "LZ4F_ERROR_maxBlockSize_invalid" |
|---|
| value | 2 |
|---|
|
| name | "LZ4F_ERROR_blockMode_invalid" |
|---|
| value | 3 |
|---|
|
| name | "LZ4F_ERROR_parameter_invalid" |
|---|
| value | 4 |
|---|
| notes | "ERROR_contentChecksumFlag_invalid before 1.10.0" |
|---|
|
| name | "LZ4F_ERROR_compressionLevel_invalid" |
|---|
| value | 5 |
|---|
|
| name | "LZ4F_ERROR_headerVersion_wrong" |
|---|
| value | 6 |
|---|
|
| name | "LZ4F_ERROR_blockChecksum_invalid" |
|---|
| value | 7 |
|---|
|
| name | "LZ4F_ERROR_reservedFlag_set" |
|---|
| value | 8 |
|---|
|
| name | "LZ4F_ERROR_allocation_failed" |
|---|
| value | 9 |
|---|
|
| name | "LZ4F_ERROR_srcSize_tooLarge" |
|---|
| value | 10 |
|---|
|
| name | "LZ4F_ERROR_dstMaxSize_tooSmall" |
|---|
| value | 11 |
|---|
| notes | "ERROR_dstCapacity_tooSmall after 1.10.0" |
|---|
|
| name | "LZ4F_ERROR_frameHeader_incomplete" |
|---|
| value | 12 |
|---|
|
| name | "LZ4F_ERROR_frameType_unknown" |
|---|
| value | 13 |
|---|
|
| name | "LZ4F_ERROR_frameSize_wrong" |
|---|
| value | 14 |
|---|
|
| name | "LZ4F_ERROR_srcPtr_wrong" |
|---|
| value | 15 |
|---|
|
| name | "LZ4F_ERROR_decompressionFailed" |
|---|
| value | 16 |
|---|
|
| name | "LZ4F_ERROR_headerChecksum_invalid" |
|---|
| value | 17 |
|---|
|
| name | "LZ4F_ERROR_contentChecksum_invalid" |
|---|
| value | 18 |
|---|
|
| name | "LZ4F_ERROR_frameDecoding_alreadyStarted" |
|---|
| value | 19 |
|---|
|
| name | "LZ4F_ERROR_compressionState_uninitialized" |
|---|
| value | 20 |
|---|
|
| name | "LZ4F_ERROR_parameter_null" |
|---|
| value | 21 |
|---|
|
| name | "LZ4F_ERROR_io_write" |
|---|
| value | 22 |
|---|
|
| name | "LZ4F_ERROR_io_read" |
|---|
| value | 23 |
|---|
|
| name | "LZ4F_ERROR_maxCode" |
|---|
| value | 24 |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "LZ4F_LIST_ERRORS in v1.10.0, enum generated by LZ4F_GENERATE_ENUM in list order" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "ebb370ca83af193212df4dcbadcc5d87bc0de2f0" |
|---|
| path | "lib/lz4frame.h" |
|---|
| lines | "684-715" |
|---|
|
| type | "source" |
|---|
| detail | "unsigned LZ4F_isError(LZ4F_errorCode_t code) { return (code > (LZ4F_errorCode_t)(-LZ4F_ERROR_maxCode)); }" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "aa787570e681c695fc087b4a44cd2d5b38c2289a" |
|---|
| path | "lib/lz4frame.c" |
|---|
| lines | "295-298" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "cmp rax, -24 (48 83 F8 E8) occurs 7 times in msys-lz4-1.dll 1.10.0." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "LZ4F errorCodes" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:56:06.632Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:51:16.189Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lz4frame.h at ebb370ca lines 653-684: LZ4F_LIST_ERRORS gives 25 items OK_NoError .. ERROR_maxCode in the order of the fact (values 0-24); ERROR_parameter_invalid is 4 and ERROR_dstMaxSize_tooSmall is 11 at this commit; complete. The isError code and the binary pattern were not re-checked." |
|---|
|
|
|---|