scummvm/common/formats
Matthew Duggan e3f4117535 COMMON: Avoid Quicktime parsing crash on early EOF
In parseStream, atom.size is initailized to uint32 max.  If the loop in
readDefault then never executes because the stream has hit EOF, that size is
passed as-is to seek.  This can cause a crash eg in SeekableSubReadStream
because of an int overflow.

Change readDefault to return an error in a few places if we have hit eof before
a valid atom has been read.  It's ok not to do the seek in this case.
2023-11-18 21:03:02 +01:00
..
cue.cpp COMMON: Fix Signed vs. Unsigned GCC Compiler Warning in Cue Sheet Parser 2023-10-15 20:37:16 +01:00
cue.h COMMON: Shortened constant names in CueSheet class 2023-10-12 23:54:48 +02:00
formatinfo.cpp COMMON: Fix warnings 2023-08-07 10:48:59 +02:00
formatinfo.h COMMON: Remove #pragma once 2023-08-07 10:22:09 +02:00
iff_container.cpp COMMON: Allow IFF containers to have custom header IDs 2023-10-26 19:46:32 +03:00
iff_container.h COMMON: Allow IFF containers to have custom header IDs 2023-10-26 19:46:32 +03:00
ini-file.cpp COMMON: Skip possible UTF-8 BOM when reading INI files 2023-11-18 20:20:56 +01:00
ini-file.h COMMON: Add ability to disable valueless line warning in INI files. 2023-03-16 15:04:02 +01:00
json.cpp CLOUD: Janitorial 2023-04-08 16:20:11 +02:00
json.h CLOUD: Janitorial 2023-04-08 16:20:11 +02:00
markdown.cpp COMMON: FORMATS: Pass image extensions to the user callbacks in Markdown 2023-10-31 01:58:55 +01:00
markdown.h COMMON: FORMATS: Pass image extensions to the user callbacks in Markdown 2023-10-31 01:58:55 +01:00
module.mk COMMON: Addeed initial stub for CueSheet class 2023-10-12 23:54:48 +02:00
prodos.cpp COMMON: Add createReadStreamForAltStream to open Mac resource fork and metadata streams 2023-08-30 00:31:00 +02:00
prodos.h COMMON: Add createReadStreamForAltStream to open Mac resource fork and metadata streams 2023-08-30 00:31:00 +02:00
quicktime.cpp COMMON: Avoid Quicktime parsing crash on early EOF 2023-11-18 21:03:02 +01:00
quicktime.h VIDEO: Add alias support to QuickTime parser 2023-07-23 14:07:20 +02:00
winexe_ne.cpp COMMON: Better handling for malformed NE Windows executables 2023-01-27 19:56:50 +01:00
winexe_ne.h
winexe_pe.cpp COMMON: Fix memory leak when invalid PE executable is loaded 2023-06-14 13:57:50 +02:00
winexe_pe.h
winexe.cpp
winexe.h
xmlparser.cpp COMMON: Add ability to handle unknown xml keys 2023-02-08 00:30:08 +01:00
xmlparser.h COMMON: Add ability to handle unknown xml keys 2023-02-08 00:30:08 +01:00