aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2016-01-25 02:08:52 +0000
committerRafael J. Wysocki <[email protected]>2016-02-11 10:07:08 +0000
commitf97238373b8662a6d580e204df2e7bcbfa43e27a (patch)
treecfb079abd3a87ed329d9a4f68a5327f82de25f61 /lib/string_helpers.c
parentLinux 4.5-rc3 (diff)
downloadkernel-f97238373b8662a6d580e204df2e7bcbfa43e27a.tar.gz
kernel-f97238373b8662a6d580e204df2e7bcbfa43e27a.zip
PM / sleep: declare __tracedata symbols as char[] rather than char
Accessing more than one byte from a symbol declared simply 'char' is undefined behavior, as reported by UBSAN: UBSAN: Undefined behaviour in drivers/base/power/trace.c:178:18 load of address ffffffff8203fc78 with insufficient space for an object of type 'char' Avoid this by declaring the symbols as arrays. Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions