Skip to content

Conversation

@jackulau
Copy link

Summary

Add pattern to detect lz4 version in Android libraries.

Changes

  • Add FILENAME_PATTERNS to match liblz4 library files
  • Add VERSION_PATTERN for Android format: ERROR_srcPtr_wrong -> version -> ERROR_frameType_unknown
  • Add test case for Android lz4 format

Add pattern to detect lz4 version in Android libraries where the
version string format differs from standard Linux binaries.

- Add FILENAME_PATTERNS to match liblz4 library files
- Add VERSION_PATTERN to match Android format where version appears
  between ERROR_* strings (works across API 30 and API 34)
- Add test cases for Android lz4 format (API 30: 1.8.3, API 34: 1.9.4)

Partial fix for ossf#5441

Signed-off-by: Jack <[email protected]>
Add pattern to detect lz4 version in Android libraries.

- Add FILENAME_PATTERNS to match liblz4 library files
- Update VERSION_PATTERN to handle null byte separators (API 28)
- Add generic ERROR_* pattern for API 30/34 format
- Add test cases for Android lz4 formats

Tested on Android API 28, 29, 30, 34

Partial fix for ossf#5441

Signed-off-by: Jack <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant