mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 22:15:55 +03:00
[GH-ISSUE #7] Evaluate use of system uthash #1
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#1
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 @dvershinin on GitHub (Oct 24, 2020).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/7
Even quite conservative distros like CentOS 6, 7 and 8, all have uthash 2.0.2 available.
As I have checked, the module compiles just fine if I replace the include everywhere with
<uthash.h>.Would there be a problem to use this uthash version?
This would simplify instructions to simply install
uthash-develpackage on RedHat-based distros,and
uthash-devon Debian-based distros.And the resulting module file would use the system library which (potentially) receives security updates; lower mem use if something else besides this module uses the library.
@ADD-SP commented on GitHub (Oct 25, 2020):
Thanks for the suggesting. Switching to system library is a good idea. I didn't actually notice that uthash is included in the system library.
After testing, uthash 2.0.1 works fine with Ubuntu 18.04 LTS. I've updated the dev branch to switch to the system library. Just to be safe, the dev branch will be tested for a month. If there are no new problems during the testing period I will release v2.0.1 and close this issue.
@ADD-SP commented on GitHub (Dec 3, 2020):
Hello, v2.0.1 has been released and I will close this issue. If you find any related problems later, you can reopen this issue.
@dvershinin commented on GitHub (Dec 3, 2020):
Currently, it fails to compile 2.0.1 with:
So at least in
src/ngx_http_waf_module_core.cthe reference to include is invalid still.@ADD-SP commented on GitHub (Dec 3, 2020):
Sorry, this is a stupid mistake. There are two reasons for this, the first is that I did not use a completely new environment for testing. The second reason is that I didn't change the CI configuration so that the CI could not detect the bug.
Could you retest to see if the problem is fixed? If it is resolved, please close this issue. If I don't hear from you for more than three days, I will assume it is resolved and close this issue.
In addition, I have found and fixed another serious error in my testing, see CHANGES.
Thanks for your help.