scummvm/common
Thierry Crozat eff98b0c56 COMMON: Fix undefined behaviour in RandomSource constructor
The 'time.tm_year * 86400 * 366' line caused the result to overflow
what can be stored in an int; and signed int overflow is undefined
behaviour. The result goes into an unsigned int anyway, so now
all the intermediate computations are also done with unsigned int.
It still overflows (not on this line, but on the next one), but
that is fine as the standard guarantees that unsigned int overflow
wraps around.
2022-10-31 21:46:22 +00:00
..
encodings
lua COMMON: Forbid use of unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
achievements.cpp
achievements.h
algorithm.h
archive.cpp
archive.h
array.h COMMON: Move std::initializer_list to scummsys.h 2022-09-04 23:20:17 +01:00
base-str.cpp COMMON: Add move semantic assign and construct to strings 2022-09-28 17:09:34 +02:00
base-str.h COMMON: Add move semantic assign and construct to strings 2022-09-28 17:09:34 +02:00
bitarray.h
bitstream.h VIDEO: Avoid 64-bit math in Smacker bitstreams 2022-10-01 10:58:47 +02:00
bufferedstream.h
callback.h
config-manager.cpp ALL: add support for enable-gs and fix bugs 2022-05-29 13:56:21 +02:00
config-manager.h ALL: add support for --savepath command 2022-05-29 13:56:21 +02:00
coroutines.cpp
coroutines.h
cosinetables.cpp
cosinetables.h
crc.h
dcl.cpp
dcl.h
dct.cpp
dct.h
debug-channels.h
debug.cpp
debug.h
dialogs.h
enc-internal.h
endian.h Update endian.h 2022-10-27 15:56:04 +02:00
error.cpp
error.h
events.cpp COMMON: Fix uninitialized member 2022-09-18 20:43:33 +02:00
events.h COMMON: Allow registering multiple event mappers 2022-06-18 23:13:17 +02:00
fft.cpp
fft.h
file.cpp COMMON: Fix assert crash trying to open invalid fs nodes 2022-03-27 14:00:51 -07:00
file.h
forbidden.h COMMON: Forbid use of unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
foreach.h
frac.h
fs.cpp
fs.h
func.h
gui_options.cpp COMMON: add CGA b/w render mode 2022-07-11 18:16:23 +02:00
gui_options.h COMMON: add CGA b/w render mode 2022-07-11 18:16:23 +02:00
hash-ptr.h
hash-str.h
hashmap.cpp
hashmap.h BUILD: Remove support for ancient SGI MIPSpro 2022-04-15 22:43:57 +02:00
huffman.h
iff_container.cpp
iff_container.h
ini-file.cpp COMMON: INIFile bugfixes and unit tests 2022-04-10 19:41:06 +03:00
ini-file.h COMMON: INIFile bugfixes and unit tests 2022-04-10 19:41:06 +03:00
installshield_cab.cpp
installshield_cab.h
installshieldv3_archive.cpp
installshieldv3_archive.h
inttypes.h ALL: Remove Symbian port 2022-05-28 12:32:29 +02:00
json.cpp JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
json.h
keyboard.h COMMON: Add (missing?) indentation to defines 2022-05-17 22:24:44 +03:00
language.cpp COMMON: Get accessor methods to the platform and language lists 2022-07-22 15:03:48 +02:00
language.h COMMON: Change Common::Language and Common::Platform to use a smaller type 2022-08-23 21:45:29 +03:00
list_intern.h
list.h
localization.cpp
localization.h
macresman.cpp COMMON: Refactor MacResManager::load* methods to accept a pointer 2022-09-25 10:35:03 +02:00
macresman.h COMMON: Refactor MacResManager::load* methods to accept a pointer 2022-09-25 10:35:03 +02:00
math.h MATH: Just look for a GCC compatible compiler for __builtin_clz() 2022-05-25 19:07:30 +03:00
md5.cpp
md5.h
mdct.cpp
mdct.h
memory.h
memorypool.cpp
memorypool.h JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
memstream.h
module.mk COMMON: Move 80-bit float parsing from Director to Common (#3953) 2022-06-03 21:28:17 +02:00
mutex.cpp
mutex.h
noncopyable.h
osd_message_queue.cpp
osd_message_queue.h
pack-end.h
pack-start.h
path.cpp Common: Add functions to decompose a Path into its components 2022-05-24 00:38:02 +02:00
path.h Common: Add functions to decompose a Path into its components 2022-05-24 00:38:02 +02:00
platform.cpp COMMON: Get accessor methods to the platform and language lists 2022-07-22 15:03:48 +02:00
platform.h COMMON: Change Common::Language and Common::Platform to use a smaller type 2022-08-23 21:45:29 +03:00
ptr.h COMMON: Correct spelling mistake 2022-10-27 15:56:05 +02:00
punycode.cpp COMMON: Fix Signed vs. Unsigned Comparison Warnings in Punycode 2022-07-05 21:52:28 +01:00
punycode.h
queue.h
quicktime.cpp COMMON: Add function to flatten edit lists to work around Obsidian audio popping problem. 2022-09-18 23:07:39 +03:00
quicktime.h COMMON: Add function to flatten edit lists to work around Obsidian audio popping problem. 2022-09-18 23:07:39 +03:00
random.cpp COMMON: Fix undefined behaviour in RandomSource constructor 2022-10-31 21:46:22 +00:00
random.h
rational.cpp
rational.h
rdft.cpp
rdft.h
recorderfile.cpp GUI: Fix thumbnails for event recorder dialogue 2022-06-12 15:08:01 +02:00
recorderfile.h
rect.h
rendermode.cpp COMMON: add CGA b/w render mode 2022-07-11 18:16:23 +02:00
rendermode.h COMMON: add CGA b/w render mode 2022-07-11 18:16:23 +02:00
safe-bool.h
savefile.h
scummsys.h COMMON: Move std::initializer_list to scummsys.h 2022-09-04 23:20:17 +01:00
serializer.h COMMON: Fix memory leak when deserializing U32String 2022-09-18 20:55:16 +02:00
sinetables.cpp
sinetables.h
sinewindows.cpp
sinewindows.h
singleton.h ALL: Remove Symbian port 2022-05-28 12:32:29 +02:00
span.h BUILD: Remove/simplify GCC_ATLEAST() calls when they targeted pre-C++11 compilers 2022-05-25 19:07:30 +03:00
stack.h
str-array.h
str-enc.cpp COMMON: Add string encoding API with more detailed error behavior. 2022-07-02 12:53:50 +02:00
str-enc.h COMMON: Add string encoding API with more detailed error behavior. 2022-07-02 12:53:50 +02:00
str.cpp COMMON: Add sprintf_s and vsprintf_s 2022-10-23 22:46:19 +02:00
str.h COMMON: Add sprintf_s and vsprintf_s 2022-10-23 22:46:19 +02:00
stream.cpp
stream.h COMMON: Fix reading and writing doubles from streams with older ARM toolchains 2022-07-02 12:49:22 +02:00
streamdebug.cpp
streamdebug.h
stuffit.cpp COMMON: Make better use of inlining in BitStream functions 2022-08-28 00:05:31 +03:00
stuffit.h MTROPOLIS: Plug-in base work, add Mac Obsidian support 2022-06-16 21:58:09 +02:00
substream.h
system.cpp GUI: Replace the options for selecting shaders 2022-10-08 23:39:18 +02:00
system.h COMMON: Added OSystem::kTransactionShaderChangeFailed enum value 2022-10-08 23:39:18 +02:00
taskbar.h
text-to-speech.cpp TTS: (Windows) - implement better way to disable the option 2022-04-26 21:08:41 +03:00
text-to-speech.h COMMON: Correct spelling mistake 2022-10-27 15:56:05 +02:00
textconsole.cpp COMMON: Forbid use of unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
textconsole.h
timer.h
tokenizer.cpp
tokenizer.h
translation.cpp
translation.h
type-traits.h
types.h
unarj.cpp
unarj.h
unicode-bidi.cpp
unicode-bidi.h
unzip.cpp JANITORIAL: Fix "the the" and similar typos 2022-07-29 19:36:40 +03:00
unzip.h
updates.cpp
updates.h
ustr.cpp COMMON: Add move semantic assign and construct to strings 2022-09-28 17:09:34 +02:00
ustr.h COMMON: Use forward to avoid extraneous copies 2022-10-30 18:37:16 +01:00
util.cpp
util.h COMMON: Add move semantics helpers 2022-10-30 18:37:16 +01:00
winexe_ne.cpp
winexe_ne.h
winexe_pe.cpp
winexe_pe.h
winexe.cpp
winexe.h COMMON: Uninit field cleanup 2022-08-06 11:30:43 +02:00
xmlparser.cpp COMMON: Add basic text node support to XMLParser 2022-09-22 09:40:21 +03:00
xmlparser.h COMMON: Add basic text node support to XMLParser 2022-09-22 09:40:21 +03:00
xpfloat.cpp COMMON: Fix invalid shift 2022-09-18 20:37:36 +02:00
xpfloat.h COMMON: Fix Copy Constructor GCC Warning in 80-bit Float Class 2022-06-09 00:04:13 +01:00
zlib.cpp ALL: Remove Symbian port 2022-05-28 12:32:29 +02:00
zlib.h