Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/openal-soft-1.19.1/Alc/ALc.c Examining data/openal-soft-1.19.1/Alc/ALu.c Examining data/openal-soft-1.19.1/Alc/alconfig.c Examining data/openal-soft-1.19.1/Alc/alconfig.h Examining data/openal-soft-1.19.1/Alc/alstring.h Examining data/openal-soft-1.19.1/Alc/ambdec.c Examining data/openal-soft-1.19.1/Alc/ambdec.h Examining data/openal-soft-1.19.1/Alc/backends/alsa.c Examining data/openal-soft-1.19.1/Alc/backends/base.c Examining data/openal-soft-1.19.1/Alc/backends/base.h Examining data/openal-soft-1.19.1/Alc/backends/coreaudio.c Examining data/openal-soft-1.19.1/Alc/backends/dsound.c Examining data/openal-soft-1.19.1/Alc/backends/jack.c Examining data/openal-soft-1.19.1/Alc/backends/loopback.c Examining data/openal-soft-1.19.1/Alc/backends/null.c Examining data/openal-soft-1.19.1/Alc/backends/opensl.c Examining data/openal-soft-1.19.1/Alc/backends/oss.c Examining data/openal-soft-1.19.1/Alc/backends/portaudio.c Examining data/openal-soft-1.19.1/Alc/backends/pulseaudio.c Examining data/openal-soft-1.19.1/Alc/backends/qsa.c Examining data/openal-soft-1.19.1/Alc/backends/sdl2.c Examining data/openal-soft-1.19.1/Alc/backends/sndio.c Examining data/openal-soft-1.19.1/Alc/backends/solaris.c Examining data/openal-soft-1.19.1/Alc/backends/wasapi.c Examining data/openal-soft-1.19.1/Alc/backends/wave.c Examining data/openal-soft-1.19.1/Alc/backends/winmm.c Examining data/openal-soft-1.19.1/Alc/bformatdec.c Examining data/openal-soft-1.19.1/Alc/bformatdec.h Examining data/openal-soft-1.19.1/Alc/bs2b.c Examining data/openal-soft-1.19.1/Alc/compat.h Examining data/openal-soft-1.19.1/Alc/converter.c Examining data/openal-soft-1.19.1/Alc/converter.h Examining data/openal-soft-1.19.1/Alc/cpu_caps.h Examining data/openal-soft-1.19.1/Alc/effects/autowah.c Examining data/openal-soft-1.19.1/Alc/effects/chorus.c Examining data/openal-soft-1.19.1/Alc/effects/compressor.c Examining data/openal-soft-1.19.1/Alc/effects/dedicated.c Examining data/openal-soft-1.19.1/Alc/effects/distortion.c Examining data/openal-soft-1.19.1/Alc/effects/echo.c Examining data/openal-soft-1.19.1/Alc/effects/equalizer.c Examining data/openal-soft-1.19.1/Alc/effects/fshifter.c Examining data/openal-soft-1.19.1/Alc/effects/modulator.c Examining data/openal-soft-1.19.1/Alc/effects/null.c Examining data/openal-soft-1.19.1/Alc/effects/pshifter.c Examining data/openal-soft-1.19.1/Alc/effects/reverb.c Examining data/openal-soft-1.19.1/Alc/filters/defs.h Examining data/openal-soft-1.19.1/Alc/filters/filter.c Examining data/openal-soft-1.19.1/Alc/filters/nfc.c Examining data/openal-soft-1.19.1/Alc/filters/nfc.h Examining data/openal-soft-1.19.1/Alc/filters/splitter.c Examining data/openal-soft-1.19.1/Alc/filters/splitter.h Examining data/openal-soft-1.19.1/Alc/fpu_modes.h Examining data/openal-soft-1.19.1/Alc/helpers.c Examining data/openal-soft-1.19.1/Alc/hrtf.c Examining data/openal-soft-1.19.1/Alc/hrtf.h Examining data/openal-soft-1.19.1/Alc/inprogext.h Examining data/openal-soft-1.19.1/Alc/logging.h Examining data/openal-soft-1.19.1/Alc/mastering.c Examining data/openal-soft-1.19.1/Alc/mastering.h Examining data/openal-soft-1.19.1/Alc/mixer/defs.h Examining data/openal-soft-1.19.1/Alc/mixer/hrtf_inc.c Examining data/openal-soft-1.19.1/Alc/mixer/mixer_c.c Examining data/openal-soft-1.19.1/Alc/mixer/mixer_neon.c Examining data/openal-soft-1.19.1/Alc/mixer/mixer_sse.c Examining data/openal-soft-1.19.1/Alc/mixer/mixer_sse2.c Examining data/openal-soft-1.19.1/Alc/mixer/mixer_sse3.c Examining data/openal-soft-1.19.1/Alc/mixer/mixer_sse41.c Examining data/openal-soft-1.19.1/Alc/mixvoice.c Examining data/openal-soft-1.19.1/Alc/panning.c Examining data/openal-soft-1.19.1/Alc/polymorphism.h Examining data/openal-soft-1.19.1/Alc/ringbuffer.c Examining data/openal-soft-1.19.1/Alc/ringbuffer.h Examining data/openal-soft-1.19.1/Alc/uhjfilter.c Examining data/openal-soft-1.19.1/Alc/uhjfilter.h Examining data/openal-soft-1.19.1/Alc/vector.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alAuxEffectSlot.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alBuffer.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alEffect.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alError.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alFilter.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alListener.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alMain.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alSource.h Examining data/openal-soft-1.19.1/OpenAL32/Include/alu.h Examining data/openal-soft-1.19.1/OpenAL32/Include/bs2b.h Examining data/openal-soft-1.19.1/OpenAL32/Include/sample_cvt.h Examining data/openal-soft-1.19.1/OpenAL32/alAuxEffectSlot.c Examining data/openal-soft-1.19.1/OpenAL32/alBuffer.c Examining data/openal-soft-1.19.1/OpenAL32/alEffect.c Examining data/openal-soft-1.19.1/OpenAL32/alError.c Examining data/openal-soft-1.19.1/OpenAL32/alExtension.c Examining data/openal-soft-1.19.1/OpenAL32/alFilter.c Examining data/openal-soft-1.19.1/OpenAL32/alListener.c Examining data/openal-soft-1.19.1/OpenAL32/alSource.c Examining data/openal-soft-1.19.1/OpenAL32/alState.c Examining data/openal-soft-1.19.1/OpenAL32/event.c Examining data/openal-soft-1.19.1/OpenAL32/sample_cvt.c Examining data/openal-soft-1.19.1/cmake/CheckFileOffsetBits.c Examining data/openal-soft-1.19.1/common/alcomplex.c Examining data/openal-soft-1.19.1/common/alcomplex.h Examining data/openal-soft-1.19.1/common/align.h Examining data/openal-soft-1.19.1/common/almalloc.c Examining data/openal-soft-1.19.1/common/almalloc.h Examining data/openal-soft-1.19.1/common/atomic.c Examining data/openal-soft-1.19.1/common/atomic.h Examining data/openal-soft-1.19.1/common/bool.h Examining data/openal-soft-1.19.1/common/math_defs.h Examining data/openal-soft-1.19.1/common/rwlock.c Examining data/openal-soft-1.19.1/common/rwlock.h Examining data/openal-soft-1.19.1/common/static_assert.h Examining data/openal-soft-1.19.1/common/threads.c Examining data/openal-soft-1.19.1/common/threads.h Examining data/openal-soft-1.19.1/common/uintmap.c Examining data/openal-soft-1.19.1/common/uintmap.h Examining data/openal-soft-1.19.1/common/win_main_utf8.h Examining data/openal-soft-1.19.1/examples/alffplay.cpp Examining data/openal-soft-1.19.1/examples/alhrtf.c Examining data/openal-soft-1.19.1/examples/allatency.c Examining data/openal-soft-1.19.1/examples/alloopback.c Examining data/openal-soft-1.19.1/examples/almultireverb.c Examining data/openal-soft-1.19.1/examples/alplay.c Examining data/openal-soft-1.19.1/examples/alrecord.c Examining data/openal-soft-1.19.1/examples/alreverb.c Examining data/openal-soft-1.19.1/examples/alstream.c Examining data/openal-soft-1.19.1/examples/altonegen.c Examining data/openal-soft-1.19.1/examples/common/alhelpers.c Examining data/openal-soft-1.19.1/examples/common/alhelpers.h Examining data/openal-soft-1.19.1/include/AL/al.h Examining data/openal-soft-1.19.1/include/AL/alc.h Examining data/openal-soft-1.19.1/include/AL/alext.h Examining data/openal-soft-1.19.1/include/AL/efx-creative.h Examining data/openal-soft-1.19.1/include/AL/efx-presets.h Examining data/openal-soft-1.19.1/include/AL/efx.h Examining data/openal-soft-1.19.1/native-tools/bin2h.c Examining data/openal-soft-1.19.1/native-tools/bsincgen.c Examining data/openal-soft-1.19.1/router/al.c Examining data/openal-soft-1.19.1/router/alc.c Examining data/openal-soft-1.19.1/router/router.c Examining data/openal-soft-1.19.1/router/router.h Examining data/openal-soft-1.19.1/utils/alsoft-config/main.cpp Examining data/openal-soft-1.19.1/utils/alsoft-config/mainwindow.cpp Examining data/openal-soft-1.19.1/utils/alsoft-config/mainwindow.h Examining data/openal-soft-1.19.1/utils/bsincgen.c Examining data/openal-soft-1.19.1/utils/getopt.c Examining data/openal-soft-1.19.1/utils/getopt.h Examining data/openal-soft-1.19.1/utils/makehrtf.c Examining data/openal-soft-1.19.1/utils/openal-info.c FINAL RESULTS: data/openal-soft-1.19.1/Alc/helpers.c:727:15: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. len = readlink(selfname, pathname, pathlen); data/openal-soft-1.19.1/Alc/helpers.c:731:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. len = readlink(selfname, pathname, pathlen); data/openal-soft-1.19.1/Alc/helpers.c:736:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. len = readlink(selfname, pathname, pathlen); data/openal-soft-1.19.1/Alc/helpers.c:741:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. len = readlink(selfname, pathname, pathlen); data/openal-soft-1.19.1/Alc/helpers.c:749:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. len = readlink(selfname, pathname, pathlen); data/openal-soft-1.19.1/Alc/ALu.c:1888:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. msglen = vsnprintf(evt.u.user.msg, sizeof(evt.u.user.msg), msg, args); data/openal-soft-1.19.1/Alc/backends/alsa.c:725:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. snd_pcm_access_t access; data/openal-soft-1.19.1/Alc/backends/alsa.c:843:45: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CHECK(snd_pcm_hw_params_get_access(hp, &access)); data/openal-soft-1.19.1/Alc/backends/alsa.c:881:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. snd_pcm_access_t access; data/openal-soft-1.19.1/Alc/backends/alsa.c:889:45: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CHECK(snd_pcm_hw_params_get_access(hp, &access)); data/openal-soft-1.19.1/Alc/helpers.c:476:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(str, sizeof(str), fmt, ap); data/openal-soft-1.19.1/Alc/helpers.c:819:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(LogFile, fmt, ap); data/openal-soft-1.19.1/Alc/hrtf.c:1058:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(loaded_entry->filename, alstr_get_cstr(filename)); data/openal-soft-1.19.1/Alc/inprogext.h:39:109: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. typedef void* (AL_APIENTRY*LPALMAPBUFFERSOFT)(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access); data/openal-soft-1.19.1/Alc/inprogext.h:44:104: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. AL_API void* AL_APIENTRY alMapBufferSOFT(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access); data/openal-soft-1.19.1/Alc/logging.h:20:31: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define AL_PRINT(T, MSG, ...) fprintf(LogFile, "AL lib: %s %s: "MSG, T, __FUNCTION__ , ## __VA_ARGS__) data/openal-soft-1.19.1/Alc/logging.h:22:85: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void al_print(const char *type, const char *func, const char *fmt, ...) DECL_FORMAT(printf, 3,4); data/openal-soft-1.19.1/Alc/mixvoice.c:204:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(evt.u.user.msg, msg); data/openal-soft-1.19.1/OpenAL32/Include/alError.h:13:90: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...) DECL_FORMAT(printf, 3, 4); data/openal-soft-1.19.1/OpenAL32/Include/alu.h:519:79: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void aluHandleDisconnect(ALCdevice *device, const char *msg, ...) DECL_FORMAT(printf, 2, 3); data/openal-soft-1.19.1/OpenAL32/alBuffer.c:48:57: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const ALvoid *data, ALbitfieldSOFT access); data/openal-soft-1.19.1/OpenAL32/alBuffer.c:200:104: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. AL_API void* AL_APIENTRY alMapBufferSOFT(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access) data/openal-soft-1.19.1/OpenAL32/alBuffer.c:214:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. else if(UNLIKELY((access&INVALID_MAP_FLAGS) != 0)) data/openal-soft-1.19.1/OpenAL32/alBuffer.c:215:73: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. alSetError(context, AL_INVALID_VALUE, "Invalid map flags 0x%x", access&INVALID_MAP_FLAGS); data/openal-soft-1.19.1/OpenAL32/alBuffer.c:216:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. else if(UNLIKELY(!(access&MAP_READ_WRITE_FLAGS))) data/openal-soft-1.19.1/OpenAL32/alBuffer.c:221:53: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ALbitfieldSOFT unavailable = (albuf->Access^access) & access; data/openal-soft-1.19.1/OpenAL32/alBuffer.c:221:63: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ALbitfieldSOFT unavailable = (albuf->Access^access) & access; data/openal-soft-1.19.1/OpenAL32/alBuffer.c:222:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(UNLIKELY(ReadRef(&albuf->ref) != 0 && !(access&AL_MAP_PERSISTENT_BIT_SOFT))) data/openal-soft-1.19.1/OpenAL32/alBuffer.c:243:35: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. albuf->MappedAccess = access; data/openal-soft-1.19.1/OpenAL32/alBuffer.c:869:182: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static void LoadData(ALCcontext *context, ALbuffer *ALBuf, ALuint freq, ALsizei size, enum UserFmtChannels SrcChannels, enum UserFmtType SrcType, const ALvoid *data, ALbitfieldSOFT access) data/openal-soft-1.19.1/OpenAL32/alBuffer.c:917:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if((access&MAP_READ_WRITE_FLAGS)) data/openal-soft-1.19.1/OpenAL32/alBuffer.c:929:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if((access&AL_PRESERVE_DATA_BIT_SOFT)) data/openal-soft-1.19.1/OpenAL32/alBuffer.c:981:13: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if((access&AL_PRESERVE_DATA_BIT_SOFT)) data/openal-soft-1.19.1/OpenAL32/alBuffer.c:1018:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ALBuf->Access = access; data/openal-soft-1.19.1/OpenAL32/alError.c:45:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. msglen = vsnprintf(message, sizeof(message), msg, args); data/openal-soft-1.19.1/examples/alffplay.cpp:60:109: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. typedef void* (AL_APIENTRY*LPALMAPBUFFERSOFT)(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access); data/openal-soft-1.19.1/router/router.h:178:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(LogFile, "AL Router (II): " __VA_ARGS__); \ data/openal-soft-1.19.1/router/router.h:185:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(LogFile, "AL Router (WW): " __VA_ARGS__); \ data/openal-soft-1.19.1/router/router.h:192:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(LogFile, "AL Router (EE): " __VA_ARGS__); \ data/openal-soft-1.19.1/utils/makehrtf.c:479:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, argPtr); data/openal-soft-1.19.1/utils/openal-info.c:70:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(str, sizeof(str), fmt, ap); data/openal-soft-1.19.1/utils/openal-info.c:81:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define fprintf al_fprintf data/openal-soft-1.19.1/utils/openal-info.c:82:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define printf(...) al_fprintf(stdout, __VA_ARGS__) data/openal-soft-1.19.1/Alc/ALc.c:884:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("__ALSOFT_HALF_ANGLE_CONES"); data/openal-soft-1.19.1/Alc/ALc.c:888:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("__ALSOFT_REVERSE_Z"); data/openal-soft-1.19.1/Alc/ALc.c:892:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("__ALSOFT_REVERB_IGNORES_SOUND_SPEED"); data/openal-soft-1.19.1/Alc/ALc.c:910:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("ALSOFT_LOGLEVEL"); data/openal-soft-1.19.1/Alc/ALc.c:918:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("ALSOFT_LOGFILE"); data/openal-soft-1.19.1/Alc/ALc.c:940:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("__ALSOFT_SUSPEND_CONTEXT"); data/openal-soft-1.19.1/Alc/ALc.c:1013:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("ALSOFT_TRAP_ERROR"); data/openal-soft-1.19.1/Alc/ALc.c:1021:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("ALSOFT_TRAP_AL_ERROR"); data/openal-soft-1.19.1/Alc/ALc.c:1026:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("ALSOFT_TRAP_ALC_ERROR"); data/openal-soft-1.19.1/Alc/ALc.c:1035:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(((devs=getenv("ALSOFT_DRIVERS")) && devs[0]) || data/openal-soft-1.19.1/Alc/ALc.c:1162:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("ALSOFT_DEFAULT_REVERB"); data/openal-soft-1.19.1/Alc/alconfig.c:161:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((addstr=getenv(envname)) == NULL) data/openal-soft-1.19.1/Alc/alconfig.c:441:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(!(str=getenv("XDG_CONFIG_DIRS")) || str[0] == 0) data/openal-soft-1.19.1/Alc/alconfig.c:504:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((str=getenv("HOME")) != NULL && *str) data/openal-soft-1.19.1/Alc/alconfig.c:519:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((str=getenv("XDG_CONFIG_HOME")) != NULL && str[0] != 0) data/openal-soft-1.19.1/Alc/alconfig.c:528:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((str=getenv("HOME")) != NULL && str[0] != 0) data/openal-soft-1.19.1/Alc/alconfig.c:562:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((str=getenv("ALSOFT_CONF")) != NULL && *str) data/openal-soft-1.19.1/Alc/backends/pulseaudio.c:781:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. device_name = getenv("ALSOFT_PULSE_DEFAULT"); data/openal-soft-1.19.1/Alc/helpers.c:882:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((str=getenv("ALSOFT_LOCAL_PATH")) && *str != '\0') data/openal-soft-1.19.1/Alc/helpers.c:908:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((str=getenv("XDG_DATA_HOME")) != NULL && str[0] != '\0') data/openal-soft-1.19.1/Alc/helpers.c:916:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. else if((str=getenv("HOME")) != NULL && str[0] != '\0') data/openal-soft-1.19.1/Alc/helpers.c:930:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((str=getenv("XDG_DATA_DIRS")) == NULL || str[0] == '\0') data/openal-soft-1.19.1/OpenAL32/alState.c:62:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *spoof = getenv("ALSOFT_SPOOF_VERSION"); data/openal-soft-1.19.1/common/threads.c:201:5: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(mtx); data/openal-soft-1.19.1/common/threads.c:315:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(mtx); data/openal-soft-1.19.1/common/threads.h:96:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(mtx); data/openal-soft-1.19.1/router/router.c:38:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("ALROUTER_LOGFILE"); data/openal-soft-1.19.1/router/router.c:47:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv("ALROUTER_LOGLEVEL"); data/openal-soft-1.19.1/utils/getopt.c:60:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt(int nargc, char * const nargv[], const char *ostr) data/openal-soft-1.19.1/utils/getopt.h:17:5: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt(int nargc, char * const nargv[], const char *ostr); data/openal-soft-1.19.1/utils/makehrtf.c:3337:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((opt=getopt(argc, argv, "mr:f:e:s:l:w:d:c:e:i:o:h")) != -1) data/openal-soft-1.19.1/Alc/ALc.c:929:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024] = ""; data/openal-soft-1.19.1/Alc/ALc.c:2281:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sends, source->Send, data/openal-soft-1.19.1/Alc/ALc.c:4067:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char name[16]; data/openal-soft-1.19.1/Alc/ALc.c:4100:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char name[16]; data/openal-soft-1.19.1/Alc/ALc.c:4167:31: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((err=V(device->Backend,open)(deviceName)) != ALC_NO_ERROR) data/openal-soft-1.19.1/Alc/ALc.c:4328:31: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((err=V(device->Backend,open)(deviceName)) != ALC_NO_ERROR) data/openal-soft-1.19.1/Alc/ALc.c:4520:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). V(device->Backend,open)("Loopback"); data/openal-soft-1.19.1/Alc/ALu.c:229:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(evt.u.user.msg, "Source ID "); strpos = 10; data/openal-soft-1.19.1/Alc/ALu.c:238:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(evt.u.user.msg+strpos, " state changed to AL_STOPPED"); data/openal-soft-1.19.1/Alc/ALu.c:1511:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(voice->Props, props, data/openal-soft-1.19.1/Alc/ALu.c:1643:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(distbuf, &inout[SamplesToDo-base], base*sizeof(ALfloat)); data/openal-soft-1.19.1/Alc/ALu.c:1650:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(distbuf+base-SamplesToDo, inout, SamplesToDo*sizeof(ALfloat)); data/openal-soft-1.19.1/Alc/alconfig.c:147:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char envname[1024]; data/openal-soft-1.19.1/Alc/alconfig.c:198:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char curSection[128] = ""; data/openal-soft-1.19.1/Alc/alconfig.c:206:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[256] = ""; data/openal-soft-1.19.1/Alc/alconfig.c:207:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[256] = ""; data/openal-soft-1.19.1/Alc/alconfig.c:331:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key, curSection, len); data/openal-soft-1.19.1/Alc/alconfig.c:488:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fileName[PATH_MAX]; data/openal-soft-1.19.1/Alc/alconfig.c:593:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[256]; data/openal-soft-1.19.1/Alc/alconfig.c:687:43: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). strcasecmp(val, "on") == 0 || atoi(val) != 0); data/openal-soft-1.19.1/Alc/alconfig.c:697:43: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). strcasecmp(val, "on") == 0 || atoi(val) != 0); data/openal-soft-1.19.1/Alc/backends/alsa.c:328:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[256]; data/openal-soft-1.19.1/Alc/backends/alsa.c:354:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device[128]; data/openal-soft-1.19.1/Alc/backends/alsa.c:1230:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, self->buffer, amt); data/openal-soft-1.19.1/Alc/backends/base.h:50:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ALCenum (*const open)(ALCbackend*, const ALCchar*); data/openal-soft-1.19.1/Alc/backends/base.h:69:40: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). DECLARE_THUNK1(T, ALCbackend, ALCenum, open, const ALCchar*) \ data/openal-soft-1.19.1/Alc/backends/dsound.c:153:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[64]; data/openal-soft-1.19.1/Alc/backends/jack.c:410:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; data/openal-soft-1.19.1/Alc/backends/opensl.c:968:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((ALCbyte*)buffer + i*self->mFrameSize, data/openal-soft-1.19.1/Alc/backends/oss.c:166:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fd=open("/dev/mixer", O_RDONLY)) < 0) data/openal-soft-1.19.1/Alc/backends/oss.c:383:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). self->fd = open(dev->path, O_WRONLY); data/openal-soft-1.19.1/Alc/backends/oss.c:657:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). self->fd = open(dev->path, O_RDONLY); data/openal-soft-1.19.1/Alc/backends/pulseaudio.c:564:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[64]; data/openal-soft-1.19.1/Alc/backends/pulseaudio.c:734:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char chanmap_str[PA_CHANNEL_MAP_SNPRINT_MAX] = ""; data/openal-soft-1.19.1/Alc/backends/pulseaudio.c:1306:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[64]; data/openal-soft-1.19.1/Alc/backends/pulseaudio.c:1673:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, self->cap_store, rem); data/openal-soft-1.19.1/Alc/backends/qsa.c:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[1024]; data/openal-soft-1.19.1/Alc/backends/sndio.c:356:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char junk[4096]; data/openal-soft-1.19.1/Alc/backends/solaris.c:183:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). self->fd = open(solaris_driver, O_WRONLY); data/openal-soft-1.19.1/Alc/backends/wasapi.c:122:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char MessageStr[WM_USER_Last+1-WM_USER][20] = { data/openal-soft-1.19.1/Alc/backends/wasapi.c:254:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[64]; data/openal-soft-1.19.1/Alc/backends/wasapi.c:766:25: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if((len=MultiByteToWideChar(CP_UTF8, 0, deviceName, -1, NULL, 0)) > 0) data/openal-soft-1.19.1/Alc/backends/wasapi.c:769:21: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, deviceName, -1, wname, len); data/openal-soft-1.19.1/Alc/backends/wasapi.c:1402:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data[0].buf, rdata, len1*framesize); data/openal-soft-1.19.1/Alc/backends/wasapi.c:1404:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data[1].buf, rdata+len1*framesize, len2*framesize); data/openal-soft-1.19.1/Alc/backends/wasapi.c:1470:25: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if((len=MultiByteToWideChar(CP_UTF8, 0, deviceName, -1, NULL, 0)) > 0) data/openal-soft-1.19.1/Alc/backends/wasapi.c:1473:21: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, deviceName, -1, wname, len); data/openal-soft-1.19.1/Alc/backends/winmm.c:79:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[64]; data/openal-soft-1.19.1/Alc/backends/winmm.c:122:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[64]; data/openal-soft-1.19.1/Alc/compat.h:24:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define al_fopen fopen data/openal-soft-1.19.1/Alc/converter.c:300:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(SrcData, converter->Chan[chan].mPrevSamples, data/openal-soft-1.19.1/Alc/converter.c:316:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(converter->Chan[chan].mPrevSamples, &SrcData[SrcDataEnd], data/openal-soft-1.19.1/Alc/effects/reverb.c:1412:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out[j], temps[j], todo*sizeof(ALfloat)); data/openal-soft-1.19.1/Alc/effects/reverb.c:1464:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out[j], temps[j], todo*sizeof(ALfloat)); data/openal-soft-1.19.1/Alc/helpers.c:166:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[sizeof(reg_type[4])]; data/openal-soft-1.19.1/Alc/helpers.c:221:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen("/proc/cpuinfo", "rt"); data/openal-soft-1.19.1/Alc/helpers.c:227:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/openal-soft-1.19.1/Alc/helpers.c:396:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if((len=MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0)) > 0) data/openal-soft-1.19.1/Alc/helpers.c:399:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, str, -1, out, len); data/openal-soft-1.19.1/Alc/helpers.c:444:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ret, str, sizeof(WCHAR)*len); data/openal-soft-1.19.1/Alc/helpers.c:471:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/openal-soft-1.19.1/Alc/helpers.c:701:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char procpath[PROC_PIDPATHINFO_MAXSIZE]; data/openal-soft-1.19.1/Alc/helpers.c:970:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(fname, O_RDONLY, 0); data/openal-soft-1.19.1/Alc/hrtf.c:1079:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[64]; data/openal-soft-1.19.1/Alc/hrtf.c:1161:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[64]; data/openal-soft-1.19.1/Alc/mixer/mixer_c.c:53:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, numsamples*sizeof(ALfloat)); data/openal-soft-1.19.1/Alc/mixvoice.c:383:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(SrcData, voice->PrevSamples[chan], MAX_RESAMPLE_PADDING*sizeof(ALfloat)); data/openal-soft-1.19.1/Alc/mixvoice.c:524:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(voice->PrevSamples[chan], data/openal-soft-1.19.1/Alc/ringbuffer.c:135:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, &rb->buf[read_ptr*rb->elem_size], n1*rb->elem_size); data/openal-soft-1.19.1/Alc/ringbuffer.c:139:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest + n1*rb->elem_size, &rb->buf[(read_ptr&rb->size_mask)*rb->elem_size], data/openal-soft-1.19.1/Alc/ringbuffer.c:173:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, &rb->buf[read_ptr*rb->elem_size], n1*rb->elem_size); data/openal-soft-1.19.1/Alc/ringbuffer.c:177:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest + n1*rb->elem_size, &rb->buf[(read_ptr&rb->size_mask)*rb->elem_size], data/openal-soft-1.19.1/Alc/ringbuffer.c:209:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&rb->buf[write_ptr*rb->elem_size], src, n1*rb->elem_size); data/openal-soft-1.19.1/Alc/ringbuffer.c:213:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&rb->buf[(write_ptr&rb->size_mask)*rb->elem_size], src + n1*rb->elem_size, data/openal-soft-1.19.1/Alc/vector.h:48:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char*)temp)+data_offset, (_x)->Data, \ data/openal-soft-1.19.1/OpenAL32/Include/alEffect.h:34:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char name[16]; data/openal-soft-1.19.1/OpenAL32/alAuxEffectSlot.c:623:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpnewarray, newarray, FAM_SIZE(struct ALeffectslotArray, slot, newcount)); data/openal-soft-1.19.1/OpenAL32/alBuffer.c:391:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, data, length*frame_size); data/openal-soft-1.19.1/OpenAL32/alBuffer.c:984:28: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(tocopy > 0) memcpy(temp, ALBuf->data, tocopy); data/openal-soft-1.19.1/OpenAL32/alBuffer.c:1009:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ALBuf->data, data, frames*FrameSize); data/openal-soft-1.19.1/OpenAL32/alEffect.c:630:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char name[32]; data/openal-soft-1.19.1/OpenAL32/alError.c:40:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[1024] = { 0 }; data/openal-soft-1.19.1/common/math_defs.h:29:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char b[4]; data/openal-soft-1.19.1/common/uintmap.c:97:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(keys, map->keys, map->size*sizeof(map->keys[0])); data/openal-soft-1.19.1/common/uintmap.c:98:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(values, map->values, map->size*sizeof(map->values[0])); data/openal-soft-1.19.1/common/win_main_utf8.h:24:15: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). namelen = MultiByteToWideChar(CP_UTF8, 0, fname, -1, NULL, 0); data/openal-soft-1.19.1/common/win_main_utf8.h:25:15: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). modelen = MultiByteToWideChar(CP_UTF8, 0, mode, -1, NULL, 0); data/openal-soft-1.19.1/common/win_main_utf8.h:35:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, fname, -1, wname, namelen); data/openal-soft-1.19.1/common/win_main_utf8.h:36:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, mode, -1, wmode, modelen); data/openal-soft-1.19.1/common/win_main_utf8.h:49:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define fopen my_fopen data/openal-soft-1.19.1/examples/alffplay.cpp:670:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(samples, mSamples + mSamplesPos*mFrameSize, rem*mFrameSize); data/openal-soft-1.19.1/examples/alrecord.c:269:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). recorder.mFile = fopen(fname, "wb"); data/openal-soft-1.19.1/examples/altonegen.c:209:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). max_loops = atoi(argv[i]) - 1; data/openal-soft-1.19.1/examples/altonegen.c:232:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tone_freq = atoi(argv[i]); data/openal-soft-1.19.1/examples/altonegen.c:242:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). srate = atoi(argv[i]); data/openal-soft-1.19.1/native-tools/bin2h.c:31:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). input_file = fopen(input_name, "rb"); data/openal-soft-1.19.1/native-tools/bin2h.c:39:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). output_file = fopen(output_name, "w"); data/openal-soft-1.19.1/native-tools/bin2h.c:55:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[4096]; data/openal-soft-1.19.1/native-tools/bsincgen.c:337:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). output = fopen(argv[1], "wb"); data/openal-soft-1.19.1/router/alc.c:299:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_list, list->Names, list->NamesEnd - list->Names); data/openal-soft-1.19.1/router/alc.c:300:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_list + (list->NamesEnd - list->Names), names, name_end - names); data/openal-soft-1.19.1/router/router.c:41:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(str, "w"); data/openal-soft-1.19.1/router/router.c:131:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newlist, DriverList, DriverListSize*sizeof(DriverList[0])); data/openal-soft-1.19.1/router/router.c:452:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(keys, map->keys, map->size*sizeof(map->keys[0])); data/openal-soft-1.19.1/router/router.c:453:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(values, map->values, map->size*sizeof(map->values[0])); data/openal-soft-1.19.1/utils/alsoft-config/mainwindow.cpp:20:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char backend_name[16]; data/openal-soft-1.19.1/utils/alsoft-config/mainwindow.cpp:21:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char full_string[32]; data/openal-soft-1.19.1/utils/alsoft-config/mainwindow.cpp:71:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char name[64]; data/openal-soft-1.19.1/utils/alsoft-config/mainwindow.cpp:72:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char value[16]; data/openal-soft-1.19.1/utils/bsincgen.c:373:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). output = fopen(argv[1], "wb"); data/openal-soft-1.19.1/utils/makehrtf.c:279:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mRing[TR_RING_SIZE]; data/openal-soft-1.19.1/utils/makehrtf.c:293:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mPath[MAX_PATH_LEN+1]; data/openal-soft-1.19.1/utils/makehrtf.c:639:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ch, temp[64+1]; data/openal-soft-1.19.1/utils/makehrtf.c:690:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ch, temp[64+1]; data/openal-soft-1.19.1/utils/makehrtf.c:1859:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(src->mPath, "r"); data/openal-soft-1.19.1/utils/makehrtf.c:1861:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(src->mPath, "rb"); data/openal-soft-1.19.1/utils/makehrtf.c:1936:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fp=fopen(filename, "wb")) == NULL) data/openal-soft-1.19.1/utils/makehrtf.c:2626:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ident[MAX_IDENT_LEN+1]; data/openal-soft-1.19.1/utils/makehrtf.c:2663:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[MAX_IDENT_LEN+1]; data/openal-soft-1.19.1/utils/makehrtf.c:2925:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ident[MAX_IDENT_LEN+1]; data/openal-soft-1.19.1/utils/makehrtf.c:3105:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ident[MAX_IDENT_LEN+1]; data/openal-soft-1.19.1/utils/makehrtf.c:3207:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rateStr[8+1], expName[MAX_PATH_LEN]; data/openal-soft-1.19.1/utils/makehrtf.c:3217:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(inName, "r"); data/openal-soft-1.19.1/utils/openal-info.c:54:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if((len=MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0)) > 0) data/openal-soft-1.19.1/utils/openal-info.c:57:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, str, -1, out, len); data/openal-soft-1.19.1/utils/openal-info.c:65:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/openal-soft-1.19.1/utils/openal-info.c:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/openal-soft-1.19.1/utils/openal-info.c:93:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(str, ptr, len); data/openal-soft-1.19.1/Alc/ALc.c:842:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #pragma section(".CRT$XCU",read) data/openal-soft-1.19.1/Alc/ALc.c:983:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (next ? ((size_t)(next-str)) : strlen(str)); data/openal-soft-1.19.1/Alc/ALc.c:1060:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (next ? ((size_t)(next-devs)) : strlen(devs)); data/openal-soft-1.19.1/Alc/ALc.c:1075:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(len == strlen(BackendList[n].name) && data/openal-soft-1.19.1/Alc/ALc.c:1151:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (next ? ((size_t)(next-str)) : strlen(str)); data/openal-soft-1.19.1/Alc/ALc.c:1154:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(len == strlen(EffectList[n].name) && data/openal-soft-1.19.1/Alc/ALc.c:3675:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(extName); data/openal-soft-1.19.1/Alc/alconfig.c:70:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(line); data/openal-soft-1.19.1/Alc/alconfig.c:82:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c=fgetc(f)) != EOF && (c == '\r' || c == '\n')) data/openal-soft-1.19.1/Alc/alconfig.c:107:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } while((c=fgetc(f)) != EOF && c != '\r' && c != '\n'); data/openal-soft-1.19.1/Alc/alconfig.c:129:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addstrlen = next ? (size_t)(next-str) : strlen(str); data/openal-soft-1.19.1/Alc/alconfig.c:140:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addstrlen = next ? (size_t)(next-str) : strlen(str); data/openal-soft-1.19.1/Alc/alconfig.c:163:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addstrlen = strlen(addstr); data/openal-soft-1.19.1/Alc/alconfig.c:245:25: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(curSection+p, section, sizeof(curSection)-1-p); data/openal-soft-1.19.1/Alc/alconfig.c:252:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(curSection+p, section, len); data/openal-soft-1.19.1/Alc/alconfig.c:328:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(curSection); data/openal-soft-1.19.1/Alc/alconfig.c:611:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(key, keyName, sizeof(key)-1); data/openal-soft-1.19.1/Alc/ambdec.c:22:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(line); data/openal-soft-1.19.1/Alc/ambdec.c:34:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c=fgetc(f)) != EOF && (c == '\r' || c == '\n')) data/openal-soft-1.19.1/Alc/ambdec.c:59:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } while((c=fgetc(f)) != EOF && c != '\r' && c != '\n'); data/openal-soft-1.19.1/Alc/backends/oss.c:152:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)next->handle, handle, hlen); data/openal-soft-1.19.1/Alc/backends/oss.c:154:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)next->path, path, plen); data/openal-soft-1.19.1/Alc/backends/oss.c:583:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). amt = read(self->fd, vec[0].buf, vec[0].len*frame_size); data/openal-soft-1.19.1/Alc/backends/oss.c:846:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). alstr_append_range(outnames, cur->handle, cur->handle+strlen(cur->handle)+1); data/openal-soft-1.19.1/Alc/backends/qsa.c:1029:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). alstr_append_range(outnames, n_, n_+strlen(n_)+1); \ data/openal-soft-1.19.1/Alc/backends/sdl2.c:133:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t prefix_len = strlen(DEVNAME_PREFIX); data/openal-soft-1.19.1/Alc/helpers.c:713:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pathlen = strlen(procpath); data/openal-soft-1.19.1/Alc/helpers.c:828:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t extlen = strlen(ext); data/openal-soft-1.19.1/Alc/helpers.c:844:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(dirent->d_name); data/openal-soft-1.19.1/Alc/helpers.c:1069:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str2, strlen(str2)); data/openal-soft-1.19.1/Alc/helpers.c:1085:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(from); data/openal-soft-1.19.1/Alc/helpers.c:1115:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(from); data/openal-soft-1.19.1/Alc/hrtf.c:1235:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end = pathlist + strlen(pathlist); data/openal-soft-1.19.1/OpenAL32/alError.c:51:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msglen = (int)strlen(message); data/openal-soft-1.19.1/OpenAL32/alError.c:58:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msglen = (int)strlen(msg); data/openal-soft-1.19.1/OpenAL32/alExtension.c:51:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(extName); data/openal-soft-1.19.1/OpenAL32/alState.c:737:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const ALsizei msglen = (ALsizei)strlen(msg); data/openal-soft-1.19.1/OpenAL32/event.c:43:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (ALsizei)strlen(evt.u.user.msg), evt.u.user.msg, context->EventParam data/openal-soft-1.19.1/router/alc.c:292:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). name_end += strlen(name_end)+1; data/openal-soft-1.19.1/router/alc.c:324:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). devnames += strlen(devnames)+1; data/openal-soft-1.19.1/router/alc.c:582:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(extname); data/openal-soft-1.19.1/router/router.c:244:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(newdrv.Name, name, 32); data/openal-soft-1.19.1/router/router.c:285:5: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(srchPath, path, MAX_PATH); data/openal-soft-1.19.1/router/router.c:286:5: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. Risk is low because the source is a constant string. wcsncat(srchPath, L"\\*oal.dll", MAX_PATH - lstrlenW(srchPath)); data/openal-soft-1.19.1/router/router.c:293:13: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(srchPath, path, MAX_PATH); data/openal-soft-1.19.1/router/router.c:294:13: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. Risk is low because the source is a constant character. wcsncat(srchPath, L"\\", MAX_PATH - lstrlenW(srchPath)); data/openal-soft-1.19.1/router/router.c:295:13: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. wcsncat(srchPath, fdata.cFileName, MAX_PATH - lstrlenW(srchPath)); data/openal-soft-1.19.1/utils/makehrtf.c:871:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). inLen = strlen(in); data/openal-soft-1.19.1/utils/makehrtf.c:872:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). patLen = strlen(pat); data/openal-soft-1.19.1/utils/makehrtf.c:873:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). repLen = strlen(rep); data/openal-soft-1.19.1/utils/makehrtf.c:888:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&out[di], rep, repLen); data/openal-soft-1.19.1/utils/makehrtf.c:1889:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(out); data/openal-soft-1.19.1/utils/openal-info.c:133:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(list); data/openal-soft-1.19.1/utils/openal-info.c:138:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). col = strlen(indent); data/openal-soft-1.19.1/utils/openal-info.c:165:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). list += strlen(list) + 1; data/openal-soft-1.19.1/utils/openal-info.c:333:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(current, next+1, strlen(next)); data/openal-soft-1.19.1/utils/openal-info.c:348:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(current, next+1, strlen(next)); data/openal-soft-1.19.1/utils/openal-info.c:361:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(current, next+1, strlen(next)); data/openal-soft-1.19.1/utils/openal-info.c:371:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(current, next+1, strlen(next)); ANALYSIS SUMMARY: Hits = 261 Lines analyzed = 67616 in approximately 1.63 seconds (41429 lines/second) Physical Source Lines of Code (SLOC) = 51818 Hits@level = [0] 332 [1] 59 [2] 128 [3] 31 [4] 38 [5] 5 Hits@level+ = [0+] 593 [1+] 261 [2+] 202 [3+] 74 [4+] 43 [5+] 5 Hits/KSLOC@level+ = [0+] 11.4439 [1+] 5.03686 [2+] 3.89826 [3+] 1.42808 [4+] 0.829827 [5+] 0.0964916 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.