lwIP - A Lightweight TCP/IP stack - Bugs: bug #64685, snmp traps build failure (dangling...
You are not allowed to post comments on this tracker with your current authentication level.
bug #64685: snmp traps build failure (dangling pointer)
Submitter: | Erik Ekman <yarrick> | ||
Submitted: | Sun 17 Sep 2023 09:42:22 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open | Planned Release: | None |
lwIP version: | 2.1.3 |
Sun 28 Apr 2024 01:20:49 AM UTC, comment #3: |
Sly Gryphon <sgryphon> |
Fri 26 Apr 2024 12:18:23 AM UTC, comment #2: I am just trying the basic example build, from the docs and getting this same error:
|
Sly Gryphon <sgryphon> |
Tue 10 Oct 2023 06:20:23 PM UTC, comment #1: You're right that it is storing the address of a variable on stack, but I don't think you're right that it is broken: as I see it the variable (although referenced by address) is only used during its lifetime, i.e. mainly for snmp_send_msg() and restored before the function is exited.
|
Simon Goldschmidt <goldsimon> |
Sun 17 Sep 2023 09:42:22 AM UTC, original submission:
When trying to build the fuzzer, I got this failure. Seems like it correctly detected where a pointer is given the address of a struct from the stack.
|
Erik Ekman <yarrick> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Powered by Savane 3.13-caa5.
Corresponding source code
As a work around, I couldn't find out how to pass the details on the command line, but found I could get the build working by ignoring that specific warning.
In `contrib/ports/CMakeCommon.cmake`
Add:
-Wno-error=dangling-pointer
After that, the warning is still there, but at least it compiles.
Additional note:
Also, in the BUILDING instructions, for "Working example" the instructions are slightly out of order -- I found you need to copy the `lwipcfg.h` file before running the commands.