Mailing List Archive

[Bug 63885] shifting into sign bit in mod_access_compat.c is undefined behaviour
https://bz.apache.org/bugzilla/show_bug.cgi?id=63885

Paul Dreik <apachebugzilla@pauldreik.se> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |apachebugzilla@pauldreik.se

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63885] shifting into sign bit in mod_access_compat.c is undefined behaviour [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63885

--- Comment #1 from Christophe JAILLET <christophe.jaillet@wanadoo.fr> ---
Thx for the report.

We should use apr_uint64_t instead of apr_int64_t for 'limited' in the
structure 'cmd_parms_struct'.

Fix for trunk is trivial but backport for 2.4.x is unlikely, because of
compatibility reasons (at least IMHO).

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63885] shifting into sign bit in mod_access_compat.c is undefined behaviour [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63885

--- Comment #2 from Yann Ylavic <ylavic.dev@gmail.com> ---
I think that it's AP_METHOD_BIT which should be apr_uint64_t.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63885] shifting into sign bit in mod_access_compat.c is undefined behaviour [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63885

--- Comment #3 from Yann Ylavic <ylavic.dev@gmail.com> ---
Possibly, something backportable would be to:

#define AP_METHOD_UBIT ((apr_uint64_t)1)

and use that in our codebase in place of AP_METHOD_BIT (now deprecated)...

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org