Skip to content

Conversation

@peter-lawrey
Copy link
Member

No description provided.

peter-lawrey and others added 2 commits November 18, 2025 20:36
Security enhancements:
- Enable strict compiler flags (-Werror, -Wextra, -Wconversion)
- Add stack protection and buffer overflow detection
- Implement proper object file compilation with security flags

Version tracking:
- Embed PROJECT_VERSION from Maven into native library
- Add getVersion0() native method and VERSION constant
- Log native library version on load

Error handling improvements:
- Enhance exception safety in JNI layer
- Add proper unused parameter handling
- Fix platform-specific conditional compilation

Bug fixes:
- Fix unused function warning with conditional compilation
- Remove duplicate JNI_OnLoad definitions
- Fix syntax error in MacOSX.c
- Make MacOSX.c compilation conditional on Darwin platform

Testing:
- Add 27 comprehensive tests for new functionality
- Test version tracking, library loading, and error handling
- Verify thread safety and memory safety
- Total test count increased from 70 to 97 tests

All tests pass (97/97), build verified with mvn clean verify.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@peter-lawrey peter-lawrey requested a review from tgd November 18, 2025 22:09
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.

2 participants