aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2020-08-23 02:08:35 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2020-08-23 02:08:35 +0000
commit0e7723e75fe7432974b3f6995b0b72b5c0c1184c (patch)
treedfd44a0e1cc6790b78c8434bb7fef669fff52404 /render.c
parentconfig: don't pass -1 to mbstowcs(), silences linker(?) warning (diff)
csi: avoid using memcmp() to compare timespec structs
This struct may contain padding bytes, whose values are indeterminate after any store operation[1]. It may also contain unnamed members, whose values are always indeterminate[2]. Using memcmp() isn't a reliable way to compare structs where either of these may be present. [1]: ISO/IEC 9899:1999 §6.2.6.1, paragraph 6 [2]: ISO/IEC 9899:1999 §6.7.8, paragraph 9 See also: * https://wiki.sei.cmu.edu/confluence/display/c/EXP42-C.+Do+not+compare+padding+data * https://sourceware.org/git/?p=glibc.git;a=blob;f=time/bits/types/struct_timespec.h;hb=756c306502498f9
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions