Skip to content
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

H/parse number 32bit bigendian fix #103

Merged
merged 2 commits into from
Mar 10, 2014
Merged

Conversation

bazsi
Copy link
Collaborator

@bazsi bazsi commented Mar 7, 2014

This fixes a configuration parsing issue on 32 bit big endian systems.

Using glong causes potential portability issues as somewhere it is 64bits,
on other platforms it is only 32 bits.

The lexer, which uses the parse-number functions, stores the return value in
gint64, that is always 64 bits, so use that always.

Reported-By: Tamayo, Andres <Andres.Tamayo@viasat.com>
Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
parse-number had an issue on 32 bit big endian platforms, make sure it is
actually working with 64 bit values, always by adding a testcase that
expects a 64 bit value.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
@algernon
Copy link
Contributor

Looks good to me, merged both patches to 3.5.

bazsi added a commit that referenced this pull request Mar 10, 2014
@bazsi bazsi merged commit ade168e into master Mar 10, 2014
@algernon algernon deleted the h/parse-number-32bit-bigendian-fix branch March 11, 2014 11:35
HofiOne pushed a commit to HofiOne/syslog-ng that referenced this pull request Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants