diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-27 15:12:15 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-01-30 14:21:26 +0100 |
commit | 7bfa466abe65ff14d530ae16c344cdc06d5145ea (patch) | |
tree | 15a6fb8c26887bd8f5b13ceda4d2460f4c5409f0 /Process.h | |
parent | 1014e897a7faa9556aa0ce54237c3d6c8163d023 (diff) |
Linux: silence UBSAN implicit conversions
pgrp and session might be -1
linux/LinuxProcessList.c:312:20: runtime error: implicit conversion from type 'unsigned long' of value 18446744073709551615 (64-bit, unsigned) to type 'unsigned int' changed the value to 4294967295 (32-bit, unsigned)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior linux/LinuxProcessList.c:312:20 in
linux/LinuxProcessList.c:314:23: runtime error: implicit conversion from type 'unsigned long' of value 18446744073709551615 (64-bit, unsigned) to type 'unsigned int' changed the value to 4294967295 (32-bit, unsigned)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior linux/LinuxProcessList.c:314:23 in
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,10 +76,10 @@ typedef struct Process_ { pid_t tgid; /* Process group identifier */ - unsigned int pgrp; + int pgrp; /* Session identifier */ - unsigned int session; + int session; /* Foreground group identifier of the controlling terminal */ int tpgid; |