[Swan-commit] Changes to ref refs/heads/main
D. Hugh Redelmeier
hugh at vault.libreswan.fi
Mon Dec 6 19:43:11 EET 2021
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
More information about the Swan-commit