diff options
| author | IoIxD <[email protected]> | 2024-02-01 13:16:57 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-01 21:16:57 +0100 |
| commit | 7ec43022c177cbf00b27c9e9ab067bd6889957a4 (patch) | |
| tree | 138807064b852e1a3fe161a14f01fe021797fcc3 /BINDINGS.md | |
| parent | c0b081fac042ebc5d31d99887faaf27806a4e80b (diff) | |
| download | raylib-7ec43022c177cbf00b27c9e9ab067bd6889957a4.tar.gz raylib-7ec43022c177cbf00b27c9e9ab067bd6889957a4.zip | |
Fix segfault in ExportWaveAsCode (#3769)
`char *txtData = (char *)RL_CALLOC(waveDataSize * 6 + 2000, sizeof(char));`
assumes every chunk being added to txtData is 6 bytes. This is not always true, sometimes a newline is involved and the data becomes 12 bytes instead, and this can cause a random segfault.
This commit changes `6` to `12`, and explains why in the comment.
Diffstat (limited to 'BINDINGS.md')
0 files changed, 0 insertions, 0 deletions
