You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 202 you retrieve file size but fail to check for INVALID_FILE_SIZE (-1) return value.
Should GetFileSize fail on a 32 bit system, allocation on line 204 will throw an std::bad_array_new_length exception.
Additionally you don't check either the result of the byte array allocation which could fail on very big files or in case of high memory pressure.
The text was updated successfully, but these errors were encountered:
On line 202 you retrieve file size but fail to check for INVALID_FILE_SIZE (-1) return value.
Should GetFileSize fail on a 32 bit system, allocation on line 204 will throw an std::bad_array_new_length exception.
Additionally you don't check either the result of the byte array allocation which could fail on very big files or in case of high memory pressure.
The text was updated successfully, but these errors were encountered: