public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/3] doc: Add LTP-005: Array must be sentinel terminated
@ 2021-12-07 10:29 Richard Palethorpe via ltp
  2021-12-07 10:29 ` [LTP] [PATCH v2 2/3] check: Add LTP-005 null termination check on test.tags Richard Palethorpe via ltp
  2021-12-07 10:29 ` [LTP] [PATCH v2 3/3] getrusage03, setsockopt03: Add sentinel value to tags Richard Palethorpe via ltp
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Palethorpe via ltp @ 2021-12-07 10:29 UTC (permalink / raw)
  To: ltp; +Cc: Richard Palethorpe

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
---

V2:
* Don't allow {NULL, NULL}, {0}, etc.
* The above resulted in two errors
  being detected which are fixed in patch 3

 doc/rules.tsv | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/rules.tsv b/doc/rules.tsv
index 2dfeca9f9..66dbdeccf 100644
--- a/doc/rules.tsv
+++ b/doc/rules.tsv
@@ -3,3 +3,4 @@ LTP-001	Library source files have tst_ prefix
 LTP-002	TST_RET and TST_ERR are never modified by test library functions
 LTP-003 Externally visible library symbols have the tst_ prefix
 LTP-004 Test executable symbols are marked static
+LTP-005 Array must terminate with a sentinel value (i.e. NULL or '{}')
-- 
2.34.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-07 11:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-07 10:29 [LTP] [PATCH v2 1/3] doc: Add LTP-005: Array must be sentinel terminated Richard Palethorpe via ltp
2021-12-07 10:29 ` [LTP] [PATCH v2 2/3] check: Add LTP-005 null termination check on test.tags Richard Palethorpe via ltp
2021-12-07 10:54   ` Cyril Hrubis
2021-12-07 10:29 ` [LTP] [PATCH v2 3/3] getrusage03, setsockopt03: Add sentinel value to tags Richard Palethorpe via ltp
2021-12-07 10:55   ` Cyril Hrubis
2021-12-07 11:31     ` Richard Palethorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox