Actions
Bug #317
closedblocked_find_target_tile() clang analyzer warning about NULL target_unit dereference
Start date:
03/17/2024
Due date:
% Done:
0%
Estimated time:
Description
S3_1, clang analyzer:
../../../src/common/actions.c:3122:12: warning: Access to field 'tile' results in a dereference of a null pointer (loaded from variable 'target_unit') [core.NullDereference]
3122 | return unit_tile(target_unit);
| ^~~~~~~~~~~~~~~~~~~~
../../../src/common/unit.h:388:24: note: expanded from macro 'unit_tile'
388 | #define unit_tile(_pu) ((_pu)->tile)
| ^~~~~~~~~~~
Files
Updated by Marko Lindqvist 8 months ago
- File 0016-Fix-blocked_find_target_tile-clang-analyzer-warning.patch 0016-Fix-blocked_find_target_tile-clang-analyzer-warning.patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
Updated by Marko Lindqvist 8 months ago
- Subject changed from blocked_find_target_tile() calng analyzer warning about NULL target_unit dereference to blocked_find_target_tile() clang analyzer warning about NULL target_unit dereference
Actions