Skip to content

Fix buffer overflow in src/lib/time.c time_frame_to_mmssff#44

Open
Cycloctane wants to merge 1 commit into
svend:masterfrom
Cycloctane:fix-timec-overflow
Open

Fix buffer overflow in src/lib/time.c time_frame_to_mmssff#44
Cycloctane wants to merge 1 commit into
svend:masterfrom
Cycloctane:fix-timec-overflow

Conversation

@Cycloctane
Copy link
Copy Markdown

time_frame_to_mmssff function in src/lib/time.c has buffer overflow issue. This pr adds range checks to make mm:ss:ff fit in 8 chars. Also replaces sprintf with snprintf.

Reproduce: cueconvert crashes when parsing below file:

FILE "COCC-18150.wav" WAVE
  TRACK 01 AUDIO
    INDEX 01 11111111:00:00

make mm:ss:ff fit exactly in 8 chars
replace sprintf with snprintf
@Cycloctane
Copy link
Copy Markdown
Author

@svend Have a look ? :)

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