diff options
| author | christos <christos@NetBSD.org> | 2015-10-14 01:49:46 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2015-10-14 01:49:46 +0000 |
| commit | 5fd45bc23d08447a23b3ace2fdbe178c4f3130b9 (patch) | |
| tree | d39aac9e8b725f11bc5b9f78c7a460b56c3a989f /external/mit/lua | |
| parent | aadd79e85da0e6066bfdae3815c6cf9f0b4bc99b (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.h | 4 |
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))) |
