summaryrefslogtreecommitdiff
path: root/external/mit/lua
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2015-10-14 01:49:46 +0000
committerchristos <christos@NetBSD.org>2015-10-14 01:49:46 +0000
commit5fd45bc23d08447a23b3ace2fdbe178c4f3130b9 (patch)
treed39aac9e8b725f11bc5b9f78c7a460b56c3a989f /external/mit/lua
parentaadd79e85da0e6066bfdae3815c6cf9f0b4bc99b (diff)
Add a coverity annotation; string bytes follow the struct. It would be
better to add a char bytes[]; at the end of the struct.
Diffstat (limited to 'external/mit/lua')
-rw-r--r--external/mit/lua/dist/src/lobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/mit/lua/dist/src/lobject.h b/external/mit/lua/dist/src/lobject.h
index b5676d3f529..d927e308c60 100644
--- a/external/mit/lua/dist/src/lobject.h
+++ b/external/mit/lua/dist/src/lobject.h
@@ -1,4 +1,4 @@
-/* $NetBSD: lobject.h,v 1.4 2015/10/08 13:21:00 mbalmer Exp $ */
+/* $NetBSD: lobject.h,v 1.5 2015/10/14 01:49:46 christos Exp $ */
/*
** Id: lobject.h,v 2.111 2015/06/09 14:21:42 roberto Exp
@@ -343,7 +343,7 @@ typedef union UTString {
** Get the actual string (array of bytes) from a 'TString'.
** (Access to 'extra' ensures that value is really a 'TString'.)
*/
-#define getaddrstr(ts) (cast(char *, (ts)) + sizeof(UTString))
+#define getaddrstr(ts) (/*coverity[overrun]*/cast(char *, (ts)) + sizeof(UTString))
#define getstr(ts) \
check_exp(sizeof((ts)->extra), cast(const char*, getaddrstr(ts)))