[exim-dev] [Bug 3124] cppcheck found null dereference

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Bugzilla
Dátum:  
Címzett: exim-dev
Tárgy: [exim-dev] [Bug 3124] cppcheck found null dereference
https://bugs.exim.org/show_bug.cgi?id=3124

--- Comment #1 from Andrew Aitchison <exim@???> ---
commit 8b8667503b5248524dbe94fa11be312fca5b380c nearly works,
but gcc-14 requires that we cast the string :-(

--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -2391,7 +2391,7 @@ bad_srr:    break;
              opt = NULL;
            else
              {
-             p = Ustpcpy(p, "[ ");
+             p = Ustpcpy(p, US"[ ");
              for (int i = 0; i < opt[1]; i++)
                p += sprintf(CS p, "%2.2x ", opt[i]);
              *p++ = ']';


--
You are receiving this mail because:
You are on the CC list for the bug.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/