[master] 897e5313a flexelint 6f4d0ec16741468e6ff1842cc6dcfcdcfc36c3cf
Nils Goroll
nils.goroll at uplex.de
Tue Feb 9 18:40:07 UTC 2021
commit 897e5313ac1615d65ed51b6419995ecb926c3f49
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Feb 9 19:39:04 2021 +0100
flexelint 6f4d0ec16741468e6ff1842cc6dcfcdcfc36c3cf
diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index 81c5c516a..a5f32a4cf 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -805,6 +805,7 @@ http_tx_parse_args(char * const *av, struct vtclog *vl, struct http *hp,
for (; *av != NULL; av++) {
if (!strcmp(*av, "-body")) {
assert(body == nullbody);
+ AN(av[1]);
REPLACE(body, av[1]);
av++;
diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index b37ae0874..0d6d4b5bd 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -1547,6 +1547,7 @@ cmd_tx11obj(CMD_ARGS)
else if (CMD_IS("txreq") || CMD_IS("txresp")) {
if (AV_IS("-body")) {
AZ(body);
+ AN(av[1]);
REPLACE(body, av[1]);
bodylen = strlen(body);
f.flags &= ~END_STREAM;
More information about the varnish-commit
mailing list