Error: COMPILER_WARNING (CWE-9001): [#def1] openal-soft-1.24.2/al/effects/vmorpher.cpp: scope_hint: In function ‘VmorpherEffectHandler::SetParami(ALCcontext*, VmorpherProps&, int, int)’ openal-soft-1.24.2/al/effects/vmorpher.cpp:24:42: warning[-Winline]: inlining failed in call to ‘(anonymous namespace)::PhenomeFromEnum(int)’: --param max-inline-insns-single limit reached # 24 | constexpr std::optional<VMorpherPhenome> PhenomeFromEnum(ALenum val) noexcept # | ^~~~~~~~~~~~~~~ openal-soft-1.24.2/al/effects/vmorpher.cpp:147:45: note: called from here # 147 | if(auto phenomeopt = PhenomeFromEnum(val)) # | ~~~~~~~~~~~~~~~^~~~~ # 22| namespace { # 23| # 24|-> constexpr std::optional<VMorpherPhenome> PhenomeFromEnum(ALenum val) noexcept # 25| { # 26| #define HANDLE_PHENOME(x) case AL_VOCAL_MORPHER_PHONEME_ ## x: \ Error: COMPILER_WARNING (CWE-9001): [#def2] openal-soft-1.24.2/al/effects/vmorpher.cpp: scope_hint: In function ‘SetParami’ openal-soft-1.24.2/al/effects/vmorpher.cpp:24:42: warning[-Winline]: inlining failed in call to ‘PhenomeFromEnum’: --param max-inline-insns-single limit reached # 24 | constexpr std::optional<VMorpherPhenome> PhenomeFromEnum(ALenum val) noexcept # | ^ openal-soft-1.24.2/al/effects/vmorpher.cpp:147:45: note: called from here # 147 | if(auto phenomeopt = PhenomeFromEnum(val)) # | ^ # 22| namespace { # 23| # 24|-> constexpr std::optional<VMorpherPhenome> PhenomeFromEnum(ALenum val) noexcept # 25| { # 26| #define HANDLE_PHENOME(x) case AL_VOCAL_MORPHER_PHONEME_ ## x: \ Error: COMPILER_WARNING (CWE-9001): [#def3] openal-soft-1.24.2/al/state.cpp: scope_hint: In function ‘(anonymous namespace)::GetValue<char>(ALCcontext*, int, char*)void’ openal-soft-1.24.2/al/state.cpp:132:16: warning[-Winline]: inlining failed in call to ‘(anonymous namespace)::ALenumFromDistanceModel(DistanceModel)’: --param max-inline-insns-single limit reached # 132 | constexpr auto ALenumFromDistanceModel(DistanceModel model) -> ALenum # | ^~~~~~~~~~~~~~~~~~~~~~~ openal-soft-1.24.2/al/state.cpp:217:53: note: called from here # 217 | *values = cast_value(ALenumFromDistanceModel(context->mDistanceModel)); # | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ # 130| return std::nullopt; # 131| } # 132|-> constexpr auto ALenumFromDistanceModel(DistanceModel model) -> ALenum # 133| { # 134| switch(model) Error: COMPILER_WARNING (CWE-9001): [#def4] openal-soft-1.24.2/al/buffer.h:18: included_from: Included from here. openal-soft-1.24.2/al/buffer.cpp:23: included_from: Included from here. openal-soft-1.24.2/common/alnumeric.h: scope_hint: In function ‘alBufferiDirect’ openal-soft-1.24.2/common/alnumeric.h:42:16: warning[-Winline]: inlining failed in call to ‘GetCounterSuffix(unsigned long)’: call is unlikely and code size would grow # 42 | constexpr auto GetCounterSuffix(size_t count) noexcept -> std::string_view # | ^~~~~~~~~~~~~~~~ openal-soft-1.24.2/al/buffer.cpp:1083:37: note: called from here # 1083 | GetCounterSuffix(albuf->mAmbiOrder)); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ # 40| # 41| # 42|-> constexpr auto GetCounterSuffix(size_t count) noexcept -> std::string_view # 43| { # 44| using namespace std::string_view_literals; Error: COMPILER_WARNING (CWE-9001): [#def5] openal-soft-1.24.2/common/alnumeric.h:42:16: warning[-Winline]: inlining failed in call to ‘GetCounterSuffix’: call is unlikely and code size would grow # 42 | constexpr auto GetCounterSuffix(size_t count) noexcept -> std::string_view # | ^ openal-soft-1.24.2/al/buffer.cpp:314:33: note: called from here # 314 | GetCounterSuffix(ALBuf->mAmbiOrder)); # | ^ # 40| # 41| # 42|-> constexpr auto GetCounterSuffix(size_t count) noexcept -> std::string_view # 43| { # 44| using namespace std::string_view_literals; Error: COMPILER_WARNING: [#def6] openal-soft-1.24.2/common/pffft.cpp:1470:18: warning[-Wignored-attributes]: ignoring attributes on template argument ‘{anonymous}::v4sf’ {aka ‘__m128’} # 1470 | al::span<v4sf> e; /* N/4*3 elements */ # | ^ cc1plus: note: unrecognized command-line option ‘-Wno-c++20-attribute-extensions’ may have been intended to silence earlier diagnostics # 1468| # 1469| float *twiddle{}; /* N/4 elements */ # 1470|-> al::span<v4sf> e; /* N/4*3 elements */ # 1471| # 1472| alignas(V4sfAlignment) std::byte end; Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] openal-soft-1.24.2/examples/alconvolve.c:114:5: warning[-Wanalyzer-malloc-leak]: leak of ‘player’ openal-soft-1.24.2/examples/alconvolve.c:111:14: acquire_memory: allocated here openal-soft-1.24.2/examples/alconvolve.c:114:5: throw: if ‘alGenBuffers’ throws an exception... openal-soft-1.24.2/examples/alconvolve.c:114:5: danger: ‘player’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) # 112| assert(player != NULL); # 113| # 114|-> alGenBuffers(NumBuffers, player->buffers); # 115| assert(alGetError() == AL_NO_ERROR && "Could not create buffers"); # 116| Error: GCC_ANALYZER_WARNING (CWE-476): [#def8] openal-soft-1.24.2/examples/alconvolve.c:120:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘player’ openal-soft-1.24.2/examples/alconvolve.c:111:14: acquire_memory: this call could return NULL openal-soft-1.24.2/examples/alconvolve.c:120:5: danger: ‘player’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) # 118| assert(alGetError() == AL_NO_ERROR && "Could not create source"); # 119| # 120|-> alSource3i(player->source, AL_POSITION, 0, 0, -1); # 121| alSourcei(player->source, AL_SOURCE_RELATIVE, AL_TRUE); # 122| alSourcei(player->source, AL_ROLLOFF_FACTOR, 0); Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] openal-soft-1.24.2/examples/alconvolve.c:376:18: warning[-Wanalyzer-malloc-leak]: leak of ‘membuf’ openal-soft-1.24.2/examples/alconvolve.c:326:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alconvolve.c:331:8: branch_false: ...to here openal-soft-1.24.2/examples/alconvolve.c:331:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alconvolve.c:374:14: acquire_memory: allocated here openal-soft-1.24.2/examples/alconvolve.c:376:18: throw: if ‘sf_readf_float’ throws an exception... openal-soft-1.24.2/examples/alconvolve.c:376:18: danger: ‘membuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4) # 374| membuf = malloc((size_t)(sfinfo.frames * sfinfo.channels) * sizeof(float)); # 375| # 376|-> num_frames = sf_readf_float(sndfile, membuf, sfinfo.frames); # 377| if(num_frames < 1) # 378| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] openal-soft-1.24.2/examples/alhrtf.c:106:18: warning[-Wanalyzer-malloc-leak]: leak of ‘membuf’ openal-soft-1.24.2/examples/alhrtf.c:68:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alhrtf.c:73:8: branch_false: ...to here openal-soft-1.24.2/examples/alhrtf.c:73:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alhrtf.c:104:14: acquire_memory: allocated here openal-soft-1.24.2/examples/alhrtf.c:106:18: throw: if ‘sf_readf_short’ throws an exception... openal-soft-1.24.2/examples/alhrtf.c:106:18: danger: ‘membuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) # 104| membuf = malloc((size_t)(sfinfo.frames * sfinfo.channels) * sizeof(short)); # 105| # 106|-> num_frames = sf_readf_short(sndfile, membuf, sfinfo.frames); # 107| if(num_frames < 1) # 108| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def11] openal-soft-1.24.2/examples/allatency.c:109:18: warning[-Wanalyzer-malloc-leak]: leak of ‘membuf’ openal-soft-1.24.2/examples/allatency.c:71:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/allatency.c:76:8: branch_false: ...to here openal-soft-1.24.2/examples/allatency.c:76:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/allatency.c:107:14: acquire_memory: allocated here openal-soft-1.24.2/examples/allatency.c:109:18: throw: if ‘sf_readf_short’ throws an exception... openal-soft-1.24.2/examples/allatency.c:109:18: danger: ‘membuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) # 107| membuf = malloc((size_t)(sfinfo.frames * sfinfo.channels) * sizeof(short)); # 108| # 109|-> num_frames = sf_readf_short(sndfile, membuf, sfinfo.frames); # 110| if(num_frames < 1) # 111| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def12] openal-soft-1.24.2/examples/almultireverb.c:197:18: warning[-Wanalyzer-malloc-leak]: leak of ‘membuf’ openal-soft-1.24.2/examples/almultireverb.c:170:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/almultireverb.c:175:8: branch_false: ...to here openal-soft-1.24.2/examples/almultireverb.c:175:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/almultireverb.c:195:14: acquire_memory: allocated here openal-soft-1.24.2/examples/almultireverb.c:197:18: throw: if ‘sf_readf_short’ throws an exception... openal-soft-1.24.2/examples/almultireverb.c:197:18: danger: ‘membuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) # 195| membuf = malloc((size_t)(sfinfo.frames * sfinfo.channels) * sizeof(short)); # 196| # 197|-> num_frames = sf_readf_short(sndfile, membuf, sfinfo.frames); # 198| if(num_frames < 1) # 199| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def13] openal-soft-1.24.2/examples/alplay.c:136:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fmtbuf’ openal-soft-1.24.2/examples/alplay.c:68:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alplay.c:73:8: branch_false: ...to here openal-soft-1.24.2/examples/alplay.c:73:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alplay.c:84:13: branch_false: ...to here openal-soft-1.24.2/examples/alplay.c:106:11: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alplay.c:106:12: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alplay.c:108:16: branch_true: ...to here openal-soft-1.24.2/examples/alplay.c:106:12: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alplay.c:124:23: branch_true: ...to here openal-soft-1.24.2/examples/alplay.c:130:11: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alplay.c:134:31: acquire_memory: allocated here openal-soft-1.24.2/examples/alplay.c:136:16: throw: if ‘sf_get_chunk_data’ throws an exception... openal-soft-1.24.2/examples/alplay.c:136:16: danger: ‘fmtbuf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12) # 134| ALubyte *fmtbuf = calloc(inf.datalen, 1); # 135| inf.data = fmtbuf; # 136|-> if(sf_get_chunk_data(iter, &inf) != SF_ERR_NO_ERROR) # 137| sample_format = Int16; # 138| else Error: GCC_ANALYZER_WARNING (CWE-401): [#def14] openal-soft-1.24.2/examples/alplay.c:237:22: warning[-Wanalyzer-malloc-leak]: leak of ‘membuf’ openal-soft-1.24.2/examples/alplay.c:68:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alplay.c:73:8: branch_false: ...to here openal-soft-1.24.2/examples/alplay.c:73:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alplay.c:84:13: branch_false: ...to here openal-soft-1.24.2/examples/alplay.c:226:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alplay.c:234:29: branch_false: ...to here openal-soft-1.24.2/examples/alplay.c:234:14: acquire_memory: allocated here openal-soft-1.24.2/examples/alplay.c:236:7: branch_true: following ‘true’ branch (when ‘sample_format == 0’)... openal-soft-1.24.2/examples/alplay.c:237:22: branch_true: ...to here openal-soft-1.24.2/examples/alplay.c:237:22: throw: if ‘sf_readf_short’ throws an exception... openal-soft-1.24.2/examples/alplay.c:237:22: danger: ‘membuf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6) # 235| # 236| if(sample_format == Int16) # 237|-> num_frames = sf_readf_short(sndfile, membuf, sfinfo.frames); # 238| else if(sample_format == Float) # 239| num_frames = sf_readf_float(sndfile, membuf, sfinfo.frames); Error: GCC_ANALYZER_WARNING (CWE-775): [#def15] openal-soft-1.24.2/examples/alrecord.c:68:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "wb")’ openal-soft-1.24.2/examples/alrecord.c:109:7: branch_false: following ‘false’ branch (when ‘argc > 1’)... openal-soft-1.24.2/examples/alrecord.c:129:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:242:7: branch_true: following ‘true’ branch (when ‘<unknown> == 1’)... openal-soft-1.24.2/examples/alrecord.c:244:11: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:244:11: branch_false: following ‘false’ branch (when ‘<unknown> != 8’)... openal-soft-1.24.2/examples/alrecord.c:246:16: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:246:16: branch_true: following ‘true’ branch (when ‘<unknown> == 16’)... openal-soft-1.24.2/examples/alrecord.c:261:24: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:262:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:273:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:277:22: acquire_resource: opened here openal-soft-1.24.2/examples/alrecord.c:278:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:285:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:294:5: branch_false: following ‘false’ branch (when ‘<unknown> != 32’)... openal-soft-1.24.2/examples/alrecord.c:294:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:312:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:320:5: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alrecord.c:322:9: branch_true: following ‘true’ branch (when ‘<unknown> != 8’)... openal-soft-1.24.2/examples/alrecord.c:320:5: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:328:5: throw: if ‘alcCaptureStart’ throws an exception... openal-soft-1.24.2/examples/alrecord.c:68:15: danger: ‘fopen(fname, "wb")’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10) # 66| { # 67| ALubyte data[4]; # 68|-> data[0] = (ALubyte)(val&0xff); # 69| data[1] = (ALubyte)((val>>8)&0xff); # 70| data[2] = (ALubyte)((val>>16)&0xff); Error: GCC_ANALYZER_WARNING (CWE-401): [#def16] openal-soft-1.24.2/examples/alrecord.c:68:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "wb")’ openal-soft-1.24.2/examples/alrecord.c:109:7: branch_false: following ‘false’ branch (when ‘argc > 1’)... openal-soft-1.24.2/examples/alrecord.c:129:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:242:7: branch_true: following ‘true’ branch (when ‘<unknown> == 1’)... openal-soft-1.24.2/examples/alrecord.c:244:11: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:244:11: branch_false: following ‘false’ branch (when ‘<unknown> != 8’)... openal-soft-1.24.2/examples/alrecord.c:246:16: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:246:16: branch_true: following ‘true’ branch (when ‘<unknown> == 16’)... openal-soft-1.24.2/examples/alrecord.c:261:24: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:262:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:273:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:277:22: acquire_memory: allocated here openal-soft-1.24.2/examples/alrecord.c:278:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:285:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:294:5: branch_false: following ‘false’ branch (when ‘<unknown> != 32’)... openal-soft-1.24.2/examples/alrecord.c:294:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:312:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:320:5: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alrecord.c:322:9: branch_true: following ‘true’ branch (when ‘<unknown> != 8’)... openal-soft-1.24.2/examples/alrecord.c:320:5: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:328:5: throw: if ‘alcCaptureStart’ throws an exception... openal-soft-1.24.2/examples/alrecord.c:68:15: danger: ‘fopen(fname, "wb")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10) # 66| { # 67| ALubyte data[4]; # 68|-> data[0] = (ALubyte)(val&0xff); # 69| data[1] = (ALubyte)((val>>8)&0xff); # 70| data[2] = (ALubyte)((val>>16)&0xff); Error: GCC_ANALYZER_WARNING (CWE-401): [#def17] openal-soft-1.24.2/examples/alrecord.c:347:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’ openal-soft-1.24.2/examples/alrecord.c:109:7: branch_false: following ‘false’ branch (when ‘argc > 1’)... openal-soft-1.24.2/examples/alrecord.c:129:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:242:7: branch_true: following ‘true’ branch (when ‘<unknown> == 1’)... openal-soft-1.24.2/examples/alrecord.c:244:11: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:244:11: branch_false: following ‘false’ branch (when ‘<unknown> != 8’)... openal-soft-1.24.2/examples/alrecord.c:246:16: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:246:16: branch_true: following ‘true’ branch (when ‘<unknown> == 16’)... openal-soft-1.24.2/examples/alrecord.c:261:24: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:262:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:273:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:278:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:285:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:294:5: branch_false: following ‘false’ branch (when ‘<unknown> != 32’)... openal-soft-1.24.2/examples/alrecord.c:294:5: branch_false: ...to here openal-soft-1.24.2/examples/alrecord.c:312:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alrecord.c:320:5: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alrecord.c:322:9: branch_true: following ‘true’ branch (when ‘<unknown> != 8’)... openal-soft-1.24.2/examples/alrecord.c:320:5: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:329:11: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alrecord.c:330:16: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:329:11: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alrecord.c:330:67: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:329:11: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alrecord.c:332:16: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:340:11: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alrecord.c:342:28: branch_true: ...to here openal-soft-1.24.2/examples/alrecord.c:342:28: acquire_memory: allocated here openal-soft-1.24.2/examples/alrecord.c:347:9: throw: if ‘alcCaptureSamples’ throws an exception... openal-soft-1.24.2/examples/alrecord.c:347:9: danger: ‘data’ leaks here; was allocated at [(29)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/28) # 345| recorder.mBufferSize = count; # 346| } # 347|-> alcCaptureSamples(recorder.mDevice, recorder.mBuffer, count); # 348| #if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN # 349| /* Byteswap multibyte samples on big-endian systems (wav needs little- Error: GCC_ANALYZER_WARNING (CWE-401): [#def18] openal-soft-1.24.2/examples/alreverb.c:206:18: warning[-Wanalyzer-malloc-leak]: leak of ‘membuf’ openal-soft-1.24.2/examples/alreverb.c:168:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alreverb.c:173:8: branch_false: ...to here openal-soft-1.24.2/examples/alreverb.c:173:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alreverb.c:204:14: acquire_memory: allocated here openal-soft-1.24.2/examples/alreverb.c:206:18: throw: if ‘sf_readf_short’ throws an exception... openal-soft-1.24.2/examples/alreverb.c:206:18: danger: ‘membuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) # 204| membuf = malloc((size_t)(sfinfo.frames * sfinfo.channels) * sizeof(short)); # 205| # 206|-> num_frames = sf_readf_short(sndfile, membuf, sfinfo.frames); # 207| if(num_frames < 1) # 208| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def19] openal-soft-1.24.2/examples/alstream.c:93:5: warning[-Wanalyzer-malloc-leak]: leak of ‘player’ openal-soft-1.24.2/examples/alstream.c:89:14: acquire_memory: allocated here openal-soft-1.24.2/examples/alstream.c:93:5: throw: if ‘alGenBuffers’ throws an exception... openal-soft-1.24.2/examples/alstream.c:93:5: danger: ‘player’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) # 91| # 92| /* Generate the buffers and source */ # 93|-> alGenBuffers(NumBuffers, player->buffers); # 94| assert(alGetError() == AL_NO_ERROR && "Could not create buffers"); # 95| Error: GCC_ANALYZER_WARNING (CWE-476): [#def20] openal-soft-1.24.2/examples/alstream.c:101:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘player’ openal-soft-1.24.2/examples/alstream.c:89:14: acquire_memory: this call could return NULL openal-soft-1.24.2/examples/alstream.c:101:5: danger: ‘player’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) # 99| /* Set parameters so mono sources play out the front-center speaker and # 100| * won't distance attenuate. */ # 101|-> alSource3i(player->source, AL_POSITION, 0, 0, -1); # 102| alSourcei(player->source, AL_SOURCE_RELATIVE, AL_TRUE); # 103| alSourcei(player->source, AL_ROLLOFF_FACTOR, 0); Error: GCC_ANALYZER_WARNING (CWE-401): [#def21] openal-soft-1.24.2/examples/alstream.c:199:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fmtbuf’ openal-soft-1.24.2/examples/alstream.c:135:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alstream.c:145:13: branch_false: ...to here openal-soft-1.24.2/examples/alstream.c:182:7: branch_true: following ‘true’ branch... openal-soft-1.24.2/examples/alstream.c:187:23: branch_true: ...to here openal-soft-1.24.2/examples/alstream.c:193:11: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/alstream.c:197:31: acquire_memory: allocated here openal-soft-1.24.2/examples/alstream.c:199:16: throw: if ‘sf_get_chunk_data’ throws an exception... openal-soft-1.24.2/examples/alstream.c:199:16: danger: ‘fmtbuf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6) # 197| ALubyte *fmtbuf = calloc(inf.datalen, 1); # 198| inf.data = fmtbuf; # 199|-> if(sf_get_chunk_data(iter, &inf) != SF_ERR_NO_ERROR) # 200| player->sample_type = Int16; # 201| else Error: GCC_ANALYZER_WARNING (CWE-476): [#def22] openal-soft-1.24.2/examples/altonegen.c:89:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’ openal-soft-1.24.2/examples/altonegen.c:182:5: enter_function: entry to ‘main’ openal-soft-1.24.2/examples/altonegen.c:197:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/altonegen.c:200:9: branch_false: ...to here openal-soft-1.24.2/examples/altonegen.c:200:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/altonegen.c:200:7: branch_false: ...to here openal-soft-1.24.2/examples/altonegen.c:296:7: branch_true: following ‘true’ branch (when ‘srate < 0’)... openal-soft-1.24.2/examples/altonegen.c:297:9: branch_true: ...to here openal-soft-1.24.2/examples/altonegen.c:300:14: call_function: calling ‘CreateWave’ from ‘main’ # 87| { # 88| ALdouble ival; # 89|-> data[i] += (ALfloat)(sin(modf(i*cycles_per_sample, &ival) * 2.0*M_PI) * g); # 90| } # 91| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def23] openal-soft-1.24.2/examples/altonegen.c:164:5: warning[-Wanalyzer-malloc-leak]: leak of ‘data’ openal-soft-1.24.2/examples/altonegen.c:182:5: enter_function: entry to ‘main’ openal-soft-1.24.2/examples/altonegen.c:197:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/altonegen.c:200:9: branch_false: ...to here openal-soft-1.24.2/examples/altonegen.c:200:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/altonegen.c:200:7: branch_false: ...to here openal-soft-1.24.2/examples/altonegen.c:296:7: branch_true: following ‘true’ branch (when ‘srate < 0’)... openal-soft-1.24.2/examples/altonegen.c:297:9: branch_true: ...to here openal-soft-1.24.2/examples/altonegen.c:300:14: call_function: calling ‘CreateWave’ from ‘main’ # 162| /* Buffer the audio data into a new buffer object. */ # 163| buffer = 0; # 164|-> alGenBuffers(1, &buffer); # 165| alBufferData(buffer, AL_FORMAT_MONO_FLOAT32, data, (ALsizei)data_size, (ALsizei)srate); # 166| free(data); Error: GCC_ANALYZER_WARNING (CWE-401): [#def24] openal-soft-1.24.2/examples/altonegen.c:165:5: warning[-Wanalyzer-malloc-leak]: leak of ‘data’ openal-soft-1.24.2/examples/altonegen.c:182:5: enter_function: entry to ‘main’ openal-soft-1.24.2/examples/altonegen.c:197:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/altonegen.c:200:9: branch_false: ...to here openal-soft-1.24.2/examples/altonegen.c:200:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/examples/altonegen.c:200:7: branch_false: ...to here openal-soft-1.24.2/examples/altonegen.c:296:7: branch_true: following ‘true’ branch (when ‘srate < 0’)... openal-soft-1.24.2/examples/altonegen.c:297:9: branch_true: ...to here openal-soft-1.24.2/examples/altonegen.c:300:14: call_function: calling ‘CreateWave’ from ‘main’ # 163| buffer = 0; # 164| alGenBuffers(1, &buffer); # 165|-> alBufferData(buffer, AL_FORMAT_MONO_FLOAT32, data, (ALsizei)data_size, (ALsizei)srate); # 166| free(data); # 167| Error: COMPILER_WARNING (CWE-686): [#def25] openal-soft-1.24.2/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-2zn4zL/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘pow’; expected ‘double(double, double)’ Error: GCC_ANALYZER_WARNING (CWE-688): [#def26] openal-soft-1.24.2/utils/openal-info.c:396:13: warning[-Wanalyzer-null-argument]: use of NULL ‘next’ where non-null expected openal-soft-1.24.2/utils/openal-info.c:364:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/utils/openal-info.c:370:21: branch_false: ...to here openal-soft-1.24.2/utils/openal-info.c:389:15: branch_true: following ‘true’ branch... openal-soft-1.24.2/utils/openal-info.c:391:22: branch_true: ...to here openal-soft-1.24.2/utils/openal-info.c:395:11: branch_true: following ‘true’ branch... openal-soft-1.24.2/utils/openal-info.c:396:13: branch_true: ...to here openal-soft-1.24.2/utils/openal-info.c:396:13: danger: argument 1 (‘next’) NULL where non-null expected # 394| palFilteri(object, AL_FILTER_TYPE, filters[i]); # 395| if(alGetError() != AL_NO_ERROR) # 396|-> memmove(current, next+1, strlen(next)); /* NOLINT(clang-analyzer-security.insecureAPI.*) */ # 397| else # 398| current = next+1; Error: GCC_ANALYZER_WARNING (CWE-688): [#def27] openal-soft-1.24.2/utils/openal-info.c:415:13: warning[-Wanalyzer-null-argument]: use of NULL ‘next’ where non-null expected openal-soft-1.24.2/utils/openal-info.c:330:13: enter_function: entry to ‘printEFXInfo’ openal-soft-1.24.2/utils/openal-info.c:364:7: branch_false: following ‘false’ branch... openal-soft-1.24.2/utils/openal-info.c:370:21: branch_false: ...to here openal-soft-1.24.2/utils/openal-info.c:389:15: branch_true: following ‘true’ branch... openal-soft-1.24.2/utils/openal-info.c:391:22: branch_true: ...to here openal-soft-1.24.2/utils/openal-info.c:395:11: branch_true: following ‘true’ branch... openal-soft-1.24.2/utils/openal-info.c:396:13: branch_true: ...to here openal-soft-1.24.2/utils/openal-info.c:389:15: branch_true: following ‘true’ branch... openal-soft-1.24.2/utils/openal-info.c:391:22: branch_true: ...to here openal-soft-1.24.2/utils/openal-info.c:395:11: branch_false: following ‘false’ branch... openal-soft-1.24.2/utils/openal-info.c:398:13: branch_false: ...to here openal-soft-1.24.2/utils/openal-info.c:389:15: branch_false: following ‘false’ branch... openal-soft-1.24.2/utils/openal-info.c:400:5: branch_false: ...to here openal-soft-1.24.2/utils/openal-info.c:401:5: call_function: calling ‘printList’ from ‘printEFXInfo’ openal-soft-1.24.2/utils/openal-info.c:401:5: return_function: returning to ‘printEFXInfo’ from ‘printList’ openal-soft-1.24.2/utils/openal-info.c:408:15: branch_true: following ‘true’ branch... openal-soft-1.24.2/utils/openal-info.c:410:22: branch_true: ...to here openal-soft-1.24.2/utils/openal-info.c:414:11: branch_true: following ‘true’ branch... openal-soft-1.24.2/utils/openal-info.c:415:13: branch_true: ...to here openal-soft-1.24.2/utils/openal-info.c:415:13: danger: argument 1 (‘next’) NULL where non-null expected # 413| palEffecti(object, AL_EFFECT_TYPE, effects[i]); # 414| if(alGetError() != AL_NO_ERROR) # 415|-> memmove(current, next+1, strlen(next)); /* NOLINT(clang-analyzer-security.insecureAPI.*) */ # 416| else # 417| current = next+1;
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-63.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | openal-soft-1.24.2-5.fc44 |
| store-results-to | /tmp/tmpw5wtc656/openal-soft-1.24.2-5.fc44.tar.xz |
| time-created | 2026-01-08 20:12:05 |
| time-finished | 2026-01-08 20:14:13 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpw5wtc656/openal-soft-1.24.2-5.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpw5wtc656/openal-soft-1.24.2-5.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |