[Swan-commit] Changes to ref refs/heads/main
D. Hugh Redelmeier
hugh at vault.libreswan.fi
Mon Dec 6 19:43:11 EET 2021
New commits:
commit 2819a96ab86984b935088cf49a17229a54a90f14
Author: D. Hugh Redelmeier <hugh at mimosa.com>
Date: Mon Dec 6 12:34:52 2021 -0500
enumcheck: placate Coverity Scan; eliminate one heap use
Coverity didn't see that a second call to strchr couldn't yield NULL
if an earlier call with the same arguments didn't yield NULL.
Eliminating the second call should fix it.
The code duplicated a string into the heap in order to truncate it.
We eliminated the need for a copy by using length-bounded string
operations.
More information about the Swan-commit
mailing list