Skip to content

Commit c1ed3f4

Browse files
committed
Update README.md for v0.2.1 - critical security and stability fixes
1 parent 6a782f6 commit c1ed3f4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,15 @@ make
283283

284284
## Version History
285285

286-
### v0.2.0 (Current)
286+
### v0.2.1 (Current)
287+
- **Critical Fix**: Buffer overflow vulnerability in `ds_create_length()` - now correctly handles requested length vs source string length
288+
- **Critical Fix**: Segmentation fault in test suite caused by dangerous NULL parameter testing
289+
- **Security**: Added comprehensive NULL parameter validation with assertions for `ds_create_length()`, `ds_prepend()`, `ds_insert()`, `ds_substring()`, `ds_replace()`, and `ds_replace_all()`
290+
- **Fixed**: `ds_insert()` beyond-bounds behavior now inserts at string end instead of returning unchanged
291+
- **Testing**: Corrected 6 failing tests that had incorrect expectations, all 73 tests now pass
292+
- **API Safety**: Functions now fail fast with clear assertion messages instead of silent undefined behavior
293+
294+
### v0.2.0
287295

288296
- **Added**: Atomic reference counting support (`DS_ATOMIC_REFCOUNT`) for safe concurrent reference sharing
289297
- **Added**: `ds_contains()` - clean boolean check for substring presence

0 commit comments

Comments
 (0)