Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
This commit is based on Wengier's INTERNATIONAL1 scancode
handling in DOSBox-X.
Imported-from: joncampbell123/dosbox-x@779dee8
Co-authored-by: Wengier <wengierwu@yahoo.com>
|
|
|
|
This uses the standard "MODULE_CamelCase" for the previous
non-standard OpenCaptureFile(...) function.
|
|
|
|
|
|
stb_truetype is a lightweight, header-only library to parse, decode, and
rasterize characters from TrueType fonts.
|
|
Font stash is light-weight online font texture atlas builder written in
C. It uses stb_truetype to render fonts on demand to a texture atlas.
|
|
Co-authored-by: icculus <icculus@icculus.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TOCTOU security issues exists between a check event and a use event
in which an attacker can change properties about the thing being
used.
In this case, the code checked several stat-based properties about
the mouse's character-device file path, and once verified, opened
the the file path as a bona fide mouse device.
Because the same open file descriptor isn't maintained across the
checks through to the usage, we can't be guaranteed that file used
is the one we checked (the crux of the TOCTOU vulnerability).
To fix it, we hold the sample file descriptor across the checks and
usage.
|
|
Fixes:
warning: implicit conversion changes signedness:
'unsigned int' to 'int'
|
|
|
|
In pump_events, the event struct members are used initialized in
three places:
1. Line 479, the event struct is passed into queue_event() which
accesses the event's minval member, but it hasn't been written to
at this point.
2. Line 488, the event struct is passed into queue_event() which
accesses the event's minval member, but it hasn't been written to
at this point.
3. Line 505, the event struct is passed into queue_event() which
accesses the event's item member, but it hasn't been written to at
this point.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Co-authored-by: icculus <icculus@icculus.org>
|
|
|
|
|
|
|
|
|
|
Fixes:
Direct leak of 128 byte(s) in 1 object(s) allocated from:
#0 0x55c7a8a80b3d in operator new(unsigned long) (/usr/src/dosbox-staging/build/clang-both-a_u/dosbox+0x1358b3d) (BuildId: 09f4c46c22a1b04de8e13e427d9d203a3193c043)
#1 0x55c7aa68ddee in ChorusEngine::setUpChorus(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:80:19
#2 0x55c7aa647b40 in ChorusEngine::ChorusEngine(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:55:9
#3 0x55c7aa645879 in __cxx_global_var_init /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp:149:31
#4 0x55c7aa645b34 in _GLOBAL__sub_I_mixer.cpp /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp
#5 0x7f173ff10eba in call_init csu/../csu/libc-start.c:145:3
#6 0x7f173ff10eba in __libc_start_main csu/../csu/libc-start.c:379:5
Indirect leak of 5224 byte(s) in 1 object(s) allocated from:
#0 0x55c7a8a80b3d in operator new(unsigned long) (/usr/src/dosbox-staging/build/clang-both-a_u/dosbox+0x1358b3d) (BuildId: 09f4c46c22a1b04de8e13e427d9d203a3193c043)
#1 0x55c7aa68e1ca in Chorus::Chorus(float, float, float, float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/Chorus.h:76:7
#2 0x55c7aa68ded3 in ChorusEngine::setUpChorus(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:81:23
#3 0x55c7aa647b40 in ChorusEngine::ChorusEngine(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:55:9
#4 0x55c7aa645879 in __cxx_global_var_init /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp:149:31
#5 0x55c7aa645b34 in _GLOBAL__sub_I_mixer.cpp /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp
#6 0x7f173ff10eba in call_init csu/../csu/libc-start.c:145:3
#7 0x7f173ff10eba in __libc_start_main csu/../csu/libc-start.c:379:5
Indirect leak of 5224 byte(s) in 1 object(s) allocated from:
#0 0x55c7a8a80b3d in operator new(unsigned long) (/usr/src/dosbox-staging/build/clang-both-a_u/dosbox+0x1358b3d) (BuildId: 09f4c46c22a1b04de8e13e427d9d203a3193c043)
#1 0x55c7aa68e1ca in Chorus::Chorus(float, float, float, float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/Chorus.h:76:7
#2 0x55c7aa68df67 in ChorusEngine::setUpChorus(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:82:23
#3 0x55c7aa647b40 in ChorusEngine::ChorusEngine(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:55:9
#4 0x55c7aa645879 in __cxx_global_var_init /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp:149:31
#5 0x55c7aa645b34 in _GLOBAL__sub_I_mixer.cpp /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp
#6 0x7f173ff10eba in call_init csu/../csu/libc-start.c:145:3
#7 0x7f173ff10eba in __libc_start_main csu/../csu/libc-start.c:379:5
Indirect leak of 5224 byte(s) in 1 object(s) allocated from:
#0 0x55c7a8a80b3d in operator new(unsigned long) (/usr/src/dosbox-staging/build/clang-both-a_u/dosbox+0x1358b3d) (BuildId: 09f4c46c22a1b04de8e13e427d9d203a3193c043)
#1 0x55c7aa68e1ca in Chorus::Chorus(float, float, float, float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/Chorus.h:76:7
#2 0x55c7aa68de47 in ChorusEngine::setUpChorus(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:80:23
#3 0x55c7aa647b40 in ChorusEngine::ChorusEngine(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:55:9
#4 0x55c7aa645879 in __cxx_global_var_init /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp:149:31
#5 0x55c7aa645b34 in _GLOBAL__sub_I_mixer.cpp /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp
#6 0x7f173ff10eba in call_init csu/../csu/libc-start.c:145:3
#7 0x7f173ff10eba in __libc_start_main csu/../csu/libc-start.c:379:5
Indirect leak of 5224 byte(s) in 1 object(s) allocated from:
#0 0x55c7a8a80b3d in operator new(unsigned long) (/usr/src/dosbox-staging/build/clang-both-a_u/dosbox+0x1358b3d) (BuildId: 09f4c46c22a1b04de8e13e427d9d203a3193c043)
#1 0x55c7aa68e1ca in Chorus::Chorus(float, float, float, float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/Chorus.h:76:7
#2 0x55c7aa68e000 in ChorusEngine::setUpChorus(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:83:23
#3 0x55c7aa647b40 in ChorusEngine::ChorusEngine(float) /usr/src/dosbox-staging/build/clang-both-a_u/../../include/../src/libs/tal-chorus/ChorusEngine.h:55:9
#4 0x55c7aa645879 in __cxx_global_var_init /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp:149:31
#5 0x55c7aa645b34 in _GLOBAL__sub_I_mixer.cpp /usr/src/dosbox-staging/build/clang-both-a_u/../../src/hardware/mixer.cpp
#6 0x7f173ff10eba in call_init csu/../csu/libc-start.c:145:3
#7 0x7f173ff10eba in __libc_start_main csu/../csu/libc-start.c:379:5
|
|
|
|
|
|
|
|
|