fjpanag commented on issue #7274:
URL:
https://github.com/apache/incubator-nuttx/issues/7274#issuecomment-1273600103
> The only difference is that the new change pass "-fsanitize=undefined",
not -fsanitize=undefined. Does this make the difference?
Yes, you are correct.
When I use:
```
ifeq ($(CONFIG_SIM_UBSAN),y)
ARCHOPTIMIZATION += -fsanitize=undefined
else ifeq ($(CONFIG_MM_UBSAN_ALL),y)
ARCHOPTIMIZATION += -fsanitize=undefined
endif
```
I get no UBSan warnings at all.
When I use:
```
ifeq ($(CONFIG_SIM_UBSAN),y)
ARCHOPTIMIZATION += "-fsanitize=undefined"
else ifeq ($(CONFIG_MM_UBSAN_ALL),y)
ARCHOPTIMIZATION += "-fsanitize=undefined"
endif
```
I get some warnings, both for UBSan and my code.
So it seems like in the first case UBSan is not actually working.
Anyway, the original issue remains: UBSan fails itself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]