]> 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 1c5cb5aa17e6bd230e56ecf3413e272677fdace7..3387c1cfd203e1858a60bda5a3419777f4b2a768 100644 (file)
@@ -37,7 +37,7 @@ class SHA1Summation : public SummationImplementation
    bool Done;
    
    public:
-   bool Add(const unsigned char *inbuf, unsigned long long inlen) APT_OVERRIDE;
+   bool Add(const unsigned char *inbuf, unsigned long long inlen) APT_OVERRIDE APT_NONNULL(2);
    using SummationImplementation::Add;
 
    SHA1SumValue Result();