mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Fix potential index out of bounds
This commit is contained in:
committed by
David Reid
parent
750e83fbc1
commit
9ead8c2913
+1
-1
@@ -17295,7 +17295,7 @@ MA_API ma_result ma_job_process(ma_job* pJob)
|
||||
return MA_INVALID_ARGS;
|
||||
}
|
||||
|
||||
if (pJob->toc.breakup.code > MA_JOB_TYPE_COUNT) {
|
||||
if (pJob->toc.breakup.code >= MA_JOB_TYPE_COUNT) {
|
||||
return MA_INVALID_OPERATION;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user