summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtesttostring.h
diff options
context:
space:
mode:
authorLu YaNing <[email protected]>2025-08-12 20:07:26 +0800
committerLu YaNing <[email protected]>2025-08-20 11:47:55 +0800
commit051f116818a1be09f4f0298efb9113348431b119 (patch)
tree9979febe299b49c70cc82d2a594d605f5257da51 /src/testlib/qtesttostring.h
parent038d127fe573128b987c700d6173990839ee33ad (diff)
tests: buffer overflow warning in wayland reconnect testHEADdev
The display_name buffer size was insufficient for the maximum possible output of snprintf with format "wayland-%d". The compiler warned that output could be 10-20 bytes but the destination buffer was only 16 bytes. Increase buffer size from 16 to 32 bytes to accommodate the worst case scenario (e.g., "wayland--2147483647") and provide safety margin. Change-Id: Id980a0d897f06d1a0c1f2cb2afba9f6cd36c2988 Reviewed-by: David Edmundson <[email protected]>
Diffstat (limited to 'src/testlib/qtesttostring.h')
0 files changed, 0 insertions, 0 deletions