mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #96] error: performing pointer subtraction with a null pointer has undefined behavior [-Werror,-Wnull-pointer-subtraction] #72
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jaygooby on GitHub (Jun 16, 2022).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/96
Building nginx on MacOS 12.3.1 with Xcode gcc
Apple clang version 13.1.6 (clang-1316.0.21.2.5),nginx 1.20.1and ngx_wafcurrentbranch.I downloaded the nginx and ngx_waf sources. Using the
currentbranch of ngx_waf I addedcjsonanduthash:nginx configures OK, but
makegenerates these errors (and many more that I haven't pasted here for sake of clarity):Which I guess are coming from the
uthashlibrary?The version or branch of
ngx_waf.currentOutput of
nginx -V.It doesn't compile, but this is how it was configured:
Optional Info
MacOS 12.3.1
nginxis running in a virtual environment such asDocker. If it is running inDocker, please provide the image name.Not running under Docker
@jaygooby commented on GitHub (Jun 16, 2022):
If I remove
-Werrorfrom the nginxobjs/Makefilethen it will compile@ADD-SP commented on GitHub (Jun 27, 2022):
It looks like the compiler's dataflow analysis is behaving differently, not a bug.
@stale[bot] commented on GitHub (Jul 4, 2022):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
此 issue 因为最近没有任何活动已经被标记,如果在此之后的一段时间内仍没有任何活动则会被关闭。感谢您对项目的支持。