mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Fix CWE-686 in tools/elf2uf2/main.cpp:132 (#1585)
* Fix CWE-686: This argument should be of type 'void *' but is of type 'unsigned int'. * Switch %p to %08x.
This commit is contained in:
parent
d7bbadb291
commit
3274cc8aec
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ int check_address_range(const address_ranges& valid_ranges, uint32_t addr, uint3
|
||||||
for(const auto& range : valid_ranges) {
|
for(const auto& range : valid_ranges) {
|
||||||
if (range.from <= addr && range.to >= addr + size) {
|
if (range.from <= addr && range.to >= addr + size) {
|
||||||
if (range.type == address_range::type::NO_CONTENTS && !uninitialized) {
|
if (range.type == address_range::type::NO_CONTENTS && !uninitialized) {
|
||||||
return fail(ERROR_INCOMPATIBLE, "ELF contains memory contents for uninitialized memory at %p", addr);
|
return fail(ERROR_INCOMPATIBLE, "ELF contains memory contents for uninitialized memory at %08x", addr);
|
||||||
}
|
}
|
||||||
ar = range;
|
ar = range;
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue