]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.h
try not to call memcpy with length 0 in hash calculations
[apt.git] / apt-pkg / contrib / sha1.h
index 5770c315ab1a76a4205e5658adb567cdf34974cf..3387c1cfd203e1858a60bda5a3419777f4b2a768 100644 (file)
@@ -37,7 +37,7 @@ class SHA1Summation : public SummationImplementation
    bool Done;
    
    public:
-   bool Add(const unsigned char *inbuf, unsigned long long inlen);
+   bool Add(const unsigned char *inbuf, unsigned long long inlen) APT_OVERRIDE APT_NONNULL(2);
    using SummationImplementation::Add;
 
    SHA1SumValue Result();