[pcre-dev] [Bug 2345] New: pcre2_dfa_match.c(429): warning C…

Startseite
Nachricht löschen
Autor: admin
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 2345] New: pcre2_dfa_match.c(429): warning C4267: "=": conversion from "size_t" to "uint32_t", possible loss of data
https://bugs.exim.org/show_bug.cgi?id=2345

            Bug ID: 2345
           Summary: pcre2_dfa_match.c(429): warning C4267: "=": conversion
                    from "size_t" to "uint32_t", possible loss of data
           Product: PCRE
           Version: 10.32 (PCRE2)
          Hardware: x86-64
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: email@???
                CC: pcre-dev@???


MSVC 2017 15.9.3 shows this warning when compiling pcre2 from SVN trunk (rev.
1052) with a WIN64 configuration (Win32|x86 is fine).

The issue seems to be that dfa_match_block.heap_limit and
dfa_match_block.heap_used are both of the type PCRE2_SIZE => size_t => unsigned
__int64 and are used in a calculation which result is then stored in a variable
of type uint32_t.

SVN commit 1034 seems to have introduced this issue.

--
You are receiving this mail because:
You are on the CC list for the bug.