mirror of
https://github.com/nmap/nmap.git
synced 2025-12-23 07:59:03 +00:00
Upgrading libpcre from version 7.2 to 7.4. Tested on Linux and Windows
This commit is contained in:
@@ -47,6 +47,12 @@ and NLTYPE_ANY. The full list of Unicode newline characters is taken from
|
||||
http://unicode.org/unicode/reports/tr18/. */
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
#include "pcre_winconfig.h"
|
||||
#else
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "pcre_internal.h"
|
||||
|
||||
|
||||
@@ -124,12 +130,16 @@ _pcre_was_newline(const uschar *ptr, int type, const uschar *startptr,
|
||||
{
|
||||
int c;
|
||||
ptr--;
|
||||
#ifdef SUPPORT_UTF8
|
||||
if (utf8)
|
||||
{
|
||||
BACKCHAR(ptr);
|
||||
GETCHAR(c, ptr);
|
||||
}
|
||||
else c = *ptr;
|
||||
#else /* no UTF-8 support */
|
||||
c = *ptr;
|
||||
#endif /* SUPPORT_UTF8 */
|
||||
|
||||
if (type == NLTYPE_ANYCRLF) switch(c)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user