supl/locationsuplfw/protocolhandlerapi/src/epos_suplkey.cpp
branchRCL_3
changeset 20 2b4ea9893b66
parent 13 9c303455e256
child 21 6b6920c56e2f
--- a/supl/locationsuplfw/protocolhandlerapi/src/epos_suplkey.cpp	Thu Aug 19 10:20:18 2010 +0300
+++ b/supl/locationsuplfw/protocolhandlerapi/src/epos_suplkey.cpp	Tue Aug 31 15:37:04 2010 +0300
@@ -37,6 +37,11 @@
 #include <libc/string.h>     /* for memcpy() etc.        */
 #include <libc/stdlib.h>     /* for _lrotl with VC++     */
 
+#if defined(__GNUC__) || defined(__GNU_LIBRARY__)
+#include <byteswap.h>
+#include <endian.h>
+#endif
+
 #include "sha1.h"
 #include "hmac.h"
 
@@ -208,6 +213,7 @@
         }
 
         /* pad the key if necessary */
+        //coverity[overrun-local]
         memset(cx->key + cx->klen, 0, IN_BLOCK_LENGTH - cx->klen);
 
         /* xor ipad into key value  */