summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2018-05-15 18:56:36 -0700
committerGeorge Burgess IV <gbiv@google.com>2018-05-16 03:06:59 +0000
commit487de273455671edfd7a76d3c87bb5aaffd59ce1 (patch)
treea7761a23e2a70a824d4a48af19061d5810fe090f /trusty/coverage/coverage_test.cpp
parent48cf760bea211b43aa79675c6b73f846202865f9 (diff)
Simplify code
The static analyzer is concerned about the strcpys below this, since it apparently doesn't try to model snprintf's potential behaviors. (In particular, it was concerned that suffixLen might be >= sizeof(suffixBuf)). While that's clearly suboptimal, this code can also be simplified to make it more obvious what's happening and to appease the analyzer. No functionality change is intended. Bug: None Test: Ran the analyzer. It's no longer angry about strcpy overflows. Change-Id: I4aa812144c90f6d3e833bbcb23c0694476a0e53e
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions