Skip to content

Conversation

@NotHimmel
Copy link
Owner

Fix multiple sprintf() buffer overflows in dsinterval.c and yminterval.c

…interval.c

- Add buffer size parameter to AppendSeconds function
- Replace sprintf with snprintf for safer string formatting
- Fix buffer overflow vulnerabilities in interval data type functions

Fixes buffer overflow issues in INTERVAL DAY TO SECOND and INTERVAL YEAR TO MONTH data types
Use str_size parameter instead of sizeof(str) to properly calculate
remaining buffer space, preventing output truncation.
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