Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multiple buffer overflows in CradLoader::load()
This patches several memory issues while loading .rad files in src/rad.cpp: * Simplify the code reading the descrition and ensure not to write past the end of "desc". * Add several checks for errors reading the file and fail loading in that case. * Check instument number before using it as index to the "inst" array to avoid an out-of bounds write. * Check order length before writing data to the array. Fixes a heap-based buffer overflow (issue #89). * Check channel and row numbers before using them as indices for writing track data. Fixes another buffer overflow (issue #89). This fixes CVE-2019-14733. Fixes: #89
- Loading branch information
1 parent
30ddcfe
commit cb71517
Showing
1 changed file
with
30 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters