-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https_dns_proxy: logging fix #161
Conversation
This fix is based on @schmaller's patch and @systemcrash testing from this issue: openwrt/packages#19366 Credit goes to @schmaller and @systemcrash. Signed-off-by: Stan Grishin <[email protected]>
This fixes compiler errors, as well as legitimate crashes:
|
I agree, that this fix is needed. |
Actually this does not work well on Ubuntu 22.04 64bit :S
Ps.: even clang-tidy shows the warning at Build step |
@baranyaib90 I've already merged the patch to OpenWrt packages repo, so it's fixed there. |
Patch might fix OpenWRT in your case. I'm unsure, that it actually works for all target (32/64 bit and plenty architectures). |
Well, here's the rub: time_t is 32 bit on 32 bit systems+compilers. 64 bit on 64 bit systems. https://lwn.net/Articles/598408/ In any case, if it's only this one unsigned long is 32 bits and unsigned long long is equivalent to uint64. The assertion |
My solution just got merged on master: bd71243 I recommend to close this pull request (since this patch causes trouble on 64 bit) and use my hopefully more generic fix. |
You probably meant vice-versa. But this seems like a promising fix. It just requires testing in situ on our platforms. |
I'm pretty sure I didn't swap them. On 32 bit more "l" letters are needed. |
@systemcrash if you want to test the new code, I've updated makefile and patches in stangri/source.openwrt.melmac.net@2358e71. |
I feel it's OK to close this, I'd like to confirm the @baranyaib90's patch works tho. |
Looks good on my side. Recompiled and installed on my ath79. No crash.
|
This fix is based on @schmaller's patch and @systemcrash testing from this issue: openwrt/packages#19366
Credit goes to @schmaller and @systemcrash.