Avoids frequent double negation. See also fa7078d84fc2858a466bc1a85404f821df682538 when it was renamed from the previous name, "ValidAsCString()".
Found while reviewing #35041.
Avoids frequent double negation. See also fa7078d84fc2858a466bc1a85404f821df682538 when it was renamed from the previous name, "ValidAsCString()".
Found while reviewing #35041.
Avoids frequent double negation. See also fa7078d84fc2858a466bc1a85404f821df682538 when it was renamed from the previous name, "ValidAsCString()".
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36102.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
ACK 8d930981e9e16e26695173a378d4c9a044854fb7
99 | @@ -100,7 +100,7 @@ FUZZ_TARGET(string) 100 | (void)TrimString(random_string_1); 101 | (void)TrimString(random_string_1, random_string_2); 102 | (void)UrlDecode(random_string_1); 103 | - (void)ContainsNoNUL(random_string_1); 104 | + (void)ContainsNUL(random_string_1);
~is this one correct ? I do not see a ! before the ContainsNoNUL and I do not see any related code changed/inverted. I'm probably missing something~
Edit: I see the void which ignores the result obv. nevermind.
ACK 8d930981e9e16e26695173a378d4c9a044854fb7
The double negative is unnecessary cognitive load and easy to do wrong. code review, build & tested. lgtm
lgtm ACK 8d930981e9e16e26695173a378d4c9a044854fb7
code review ACK 8d930981e9e16e26695173a378d4c9a044854fb7