]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4967: appid: suppress false positive coverity warning
authorAndres Avila Segura (aavilase) <aavilase@cisco.com>
Mon, 3 Nov 2025 15:39:50 +0000 (15:39 +0000)
committerChris Sherwin (chsherwi) <chsherwi@cisco.com>
Mon, 3 Nov 2025 15:39:50 +0000 (15:39 +0000)
Merge in SNORT/snort3 from ~AAVILASE/snort3:suppress_coverity_warning to master

Squashed commit of the following:

commit 3f45980bf43e944f4eddc181965360fb3671102d
Author: Andres Avila <aavilase@cisco.com>
Date:   Thu Oct 30 11:04:40 2025 -0400

    appid: suppress false positive coverity warning

src/network_inspectors/appid/service_plugins/service_ftp.cc

index d72fddbd8dc43636e68cc283b2de91ee58a0b862..0dd9b6e4d690bcf5f8e9990d2d4b2f6d64d90684 100644 (file)
@@ -151,6 +151,7 @@ static inline void CopyVersionString(ServiceFTPData& fd, const uint8_t* version,
     {
         copyLen--;
     }
+    // coverity[integer_overflow]
     if (copyLen > 0)
         memcpy(fd.version, version, copyLen);
     fd.version[copyLen] = '\0';