mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Don't allow empty sounds
This commit is contained in:
@@ -517,7 +517,7 @@ IGpAudioBuffer *ParseAndConvertSoundChecked(const THandle<void> &handle)
|
||||
return nullptr;
|
||||
|
||||
uint32_t dataSize = dataTag.m_chunkSize;
|
||||
if (dataSize > 0x1000000)
|
||||
if (dataSize > 0x1000000 || dataSize < 1)
|
||||
return nullptr;
|
||||
|
||||
IGpAudioDriver *audioDriver = PLDrivers::GetAudioDriver();
|
||||
|
Reference in New Issue
Block a user