HN Reader

NewTopBestAskShowJob

Show HN: TurboStitchGif new version 1.1 (alternative to giflib)

score icon2
comment icon0
6 hours agoby Forgret
Added: · Enhanced safety features: Comprehensive bounds checking throughout the codebase

· New error codes: Added GIF_ERROR_BUFFER_OVERFLOW and GIF_ERROR_INVALID_LZW_CODE

· Error message utility: New gif_get_error_string() function for descriptive error messages

· Built-in testing framework: Comprehensive test suite enabled with GIF_TEST macro

· Test runner function: gif_run_tests() for easy validation

· Improved error handling: All internal functions now return proper error codes

Changed

· API improvements: All functions now have consistent error return values

· Memory safety: Enhanced buffer overflow protection in LZW decoding

· Platform independence: Removed all platform-specific code, pure C99 compliance

· Error reporting: More descriptive error messages through callback system

Fixed

· Endianness handling: Improved cross-platform compatibility

· Parameter validation: Added null pointer checks throughout API

· Buffer management: Better handling of edge cases and corrupted files

· Documentation: Updated README with new API and testing instructions

GitHub: https://github.com/Ferki-git-creator/TurboStitchGIF-HeaderOn...

No comments