-
Notifications
You must be signed in to change notification settings - Fork 637
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
Fix incorrect coercing of json-object int to uint32 in sparse-array-lookup-table implementation #4502
base: master
Are you sure you want to change the base?
Conversation
@rgerhards I haven't bumped libfastjson version. Do I need to? or is it ok to defer it to the release process? |
This aims to fix broken int-max case described rsyslog#4490 and rsyslog#4490.
Requiring a new libfastjson is always a bit hard, as some distros may not carry it for many month. I would prefer if we could do a configure check on the version and emit a warning/error message if and only if the function in question is actually needed by current config. Does that make sense to you? |
There was a line with incorrect formatting, fixed that. Since lookup-table is always enabled, its part of the core, dependency isn't really optional. |
yes, but if the config does not use any lookup table at all - then we do not need it, right? I think that's a very common case. |
side-note: I have updated the Ubuntu 20.04 containers and re-initiated check runs for them - so we should get a result now |
Compilation wouldn't succeed without the new function |
mistake on my side... will look into it |
@janmejay FYI: I am working on updgrading the CI infrastructure to the new (yet-unreleased) librelp version. I'll let you know when I am done. |
@janmejay FYI: I'll add e commit to your branch to force newer libfastjson and see how this works out |
OK, I cannot simply add. Will create a new PR and then let's see what we can mege. |
@janmejay please have a look at this result: https://build.rsyslog.com/#/builders/142/builds/5175/steps/4/logs/test-suite_log - there seems to be a problem on ARM platforms. This is from #4507, which is basically your PR, plus an extra commit from my side. Feel free to cherry-pick it. If possible, I would appreciate if you could squash the end result to a single commit. Note: some of the CI Platforms still fail due to too-old libfastjson (like Solaris), but that's a different matter. The majority should now work, including arm. |
removing milestone as this PR looks stalled |
Fix incorrect coercing of json-object int to uint32
in sparse-array-lookup-table implementation.
This aims to fix broken int-max case described
#4490 and
#4490.