[6.0] ca9fda642 flexelint 743 Negative character constant
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Aug 16 08:52:35 UTC 2018
commit ca9fda6420d6e67c3a88ea7e6902e6a6ef34e1b2
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Apr 5 11:40:33 2018 +0200
flexelint 743
Negative character constant
diff --git a/bin/varnishd/cache/cache_esi_parse.c b/bin/varnishd/cache/cache_esi_parse.c
index ef72eebc8..1c1f13a04 100644
--- a/bin/varnishd/cache/cache_esi_parse.c
+++ b/bin/varnishd/cache/cache_esi_parse.c
@@ -616,7 +616,8 @@ VEP_Parse(struct vep_state *vep, const char *p, size_t l)
*/
if (vep->state == VEP_START) {
- if (FEATURE(FEATURE_ESI_REMOVE_BOM) && *p == '\xeb') {
+ if (FEATURE(FEATURE_ESI_REMOVE_BOM) &&
+ *p == (char)0xeb) {
vep->match = vep_match_bom;
vep->state = VEP_MATCH;
} else
@@ -638,7 +639,7 @@ VEP_Parse(struct vep_state *vep, const char *p, size_t l)
if (p < e && *p == '<') {
p++;
vep->state = VEP_STARTTAG;
- } else if (p < e && *p == '\xeb') {
+ } else if (p < e && *p == (char)0xeb) {
VSLb(vep->vc->wrk->vsl, SLT_ESI_xmlerror,
"No ESI processing, "
"first char not '<' but BOM."
More information about the varnish-commit
mailing list