From 93926479e3247ba6d77385857b8c33c8274f0641 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Wed, 22 Feb 2017 18:46:34 +0000 Subject: [PATCH] de-fuzz: suppress a couple of warnings introduced by de-fuzzing fixes. --- include/boost/regex/v4/basic_regex_parser.hpp | 2 +- include/boost/regex/v4/match_flags.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/regex/v4/basic_regex_parser.hpp b/include/boost/regex/v4/basic_regex_parser.hpp index 780c37fe..4ab1670e 100644 --- a/include/boost/regex/v4/basic_regex_parser.hpp +++ b/include/boost/regex/v4/basic_regex_parser.hpp @@ -902,7 +902,7 @@ escape_type_class_jump: } if(negative) i = 1 + m_mark_count - i; - if(((i > 0) && (i < std::numeric_limits::digits) && (i - 1 < sizeof(unsigned) * CHAR_BIT) && (this->m_backrefs & (1u << (i-1)))) || ((i > 10000) && (this->m_pdata->get_id(i) > 0) && (this->m_pdata->get_id(i)-1 < sizeof(unsigned) * CHAR_BIT) && (this->m_backrefs & (1u << (this->m_pdata->get_id(i)-1))))) + if(((i > 0) && (i < std::numeric_limits::digits) && (i - 1 < static_cast(sizeof(unsigned) * CHAR_BIT)) && (this->m_backrefs & (1u << (i-1)))) || ((i > 10000) && (this->m_pdata->get_id(i) > 0) && (this->m_pdata->get_id(i)-1 < static_cast(sizeof(unsigned) * CHAR_BIT)) && (this->m_backrefs & (1u << (this->m_pdata->get_id(i)-1))))) { m_position = pc; re_brace* pb = static_cast(this->append_state(syntax_element_backref, sizeof(re_brace))); diff --git a/include/boost/regex/v4/match_flags.hpp b/include/boost/regex/v4/match_flags.hpp index 0b30faaf..1938b27a 100644 --- a/include/boost/regex/v4/match_flags.hpp +++ b/include/boost/regex/v4/match_flags.hpp @@ -78,7 +78,7 @@ typedef enum _match_flags | match_extra | match_single_line | match_unused1 | match_unused2 | match_unused3 | match_max | format_perl | format_default | format_sed | format_all | format_no_copy | format_first_only | format_is_if - | format_literal, + | format_literal } match_flags;