aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-04-10 16:10:29 +0200
committerDmitry Vyukov <dvyukov@google.com>2025-04-10 19:23:46 +0000
commit6083db9d13eaaceec7d43a66e2baeb6902c3f36e (patch)
tree99eddd6c0b02decef108f23f4e303093e9bd12be /sys/test
parent1cacc015cc3921bcc1a20c4a5459917d14cf70fd (diff)
pkg/csource: enforce the bit size of -1
syscall() is a variadic function, so we need to be careful when passing const values in there without specifying their type. For -1, we did not specify it, and on 64 bit architectures the de facto passed value was 0xFFFFFFFF instead of 0xFFFFFFFFFFFFFFFF. Fix it and add a test. Closes #5921.
Diffstat (limited to 'sys/test')
-rw-r--r--sys/test/csource.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/test/csource.txt b/sys/test/csource.txt
index 4efdebb2f..de32bf206 100644
--- a/sys/test/csource.txt
+++ b/sys/test/csource.txt
@@ -15,3 +15,4 @@ csource4(buf ptr[in, array[const[0x30, int8], 10]])
csource5(buf ptr[in, array[const[0x3130, int16], 5]])
csource6(buf ptr[in, array[const[0x3130, int16be], 6]])
csource7(flag flags[bitmask])
+csource8(num int64)