summaryrefslogtreecommitdiff
path: root/tests/48-sim-32b_args.py
Commit message (Collapse)AuthorAgeFilesLines
* api: provide 32-bit friendly argument comparison macrosPaul Moore2019-02-211-0/+50
We have a longstanding issue with 32-bit to 64-bit sign extension inadvertently resulting in bogus syscall argument extensions. This patch introduces a new set of argument comparison macros which limit the argument values to 32-bit values so that we don't run into problems with sign extension. We use the macro overloading proposed by Roman at https://kecher.net/overloading-macros/ to retain the feature of these macros being usable as static initializers. Thanks to @jdstrand on GitHub for reporting the problem. Signed-off-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Michael Weiser <michael.weiser@gmx.de>