audk/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma
Dongao Guo 6d665168b0 MdeModulePkg/RegularExpressionDxe: Add null pointer check
This is the part of commit 3948c510ed.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dongao Guo <dongao.guo@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2018-10-16 15:24:23 +08:00
..
AUTHORS MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
COPYING MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
OnigurumaIntrinsics.c MdeModulePkg/RegularExpressionDxe: Correct copyright 2015-11-03 02:43:03 +00:00
OnigurumaUefiPort.c MdeModulePkg RegularExpressionDxe: Add the missing EFIAPI for the function 2016-10-12 20:35:21 +08:00
OnigurumaUefiPort.h MdeModulePkg RegularExpressionDxe: Add the missing EFIAPI for the function 2016-10-12 20:35:21 +08:00
README MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
ascii.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
onig_init.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
oniggnu.h MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
onigposix.h MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
oniguruma.h MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
regcomp.c MdeModulePkg/RegularExpressionDxe: Add null pointer check 2018-10-15 15:55:53 +08:00
regenc.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
regenc.h MdeModulePkg/RegularExpressionDxe: Miss null pointer check 2018-10-15 15:55:52 +08:00
regerror.c MdeModulePkg RegularExpressionDxe: Enable STDARG for variable arguments 2018-10-15 15:55:54 +08:00
regexec.c MdeModulePkg/RegularExpressionDxe: Add null pointer check 2018-10-15 15:55:53 +08:00
reggnu.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
regint.h MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
regparse.c MdeModulePkg/RegularExpressionDxe: Add null pointer check 2018-10-16 15:24:23 +08:00
regparse.h MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
regposerr.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
regposix.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
regsyntax.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
regtrav.c MdeModulePkg: Regular expression protocol 2015-09-08 07:10:03 +00:00
regversion.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
st.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
st.h MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
unicode.c MdeModulePkg/RegularExpressionDxe: Miss null pointer check 2018-10-15 15:55:52 +08:00
unicode_egcb_data.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
unicode_fold1_key.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
unicode_fold2_key.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
unicode_fold3_key.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
unicode_fold_data.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
unicode_property_data.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
unicode_property_data_posix.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
unicode_unfold_key.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00
utf16_le.c MdeModulePkg RegularExpressionDxe: Update Oniguruma to 6.9.0 2018-09-25 08:52:51 +08:00

README

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

README  2018/04/05

Oniguruma  ----   (C) K.Kosako

https://github.com/kkos/oniguruma

FIXED Security Issues (in Oniguruma 6.3.0):
  CVE-2017-9224, CVE-2017-9225, CVE-2017-9226
  CVE-2017-9227, CVE-2017-9228, CVE-2017-9229

---
Oniguruma is a modern and flexible regular expressions library. It
encompasses features from different regular expression implementations
that traditionally exist in different languages. It comes close to
being a complete superset of all regular expression features found
in other regular expression implementations.

Its features include:
* Character encoding can be specified per regular expression object.
* Several regular expression types are supported:
  * POSIX
  * Grep
  * GNU Regex
  * Perl
  * Java
  * Ruby
  * Emacs

Supported character encodings:

  ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
  EUC-JP, EUC-TW, EUC-KR, EUC-CN,
  Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
  ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
  ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
  ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16

* GB18030: contributed by KUBO Takehiro
* CP1251:  contributed by Byte
------------------------------------------------------------

License

   BSD license.


Install

 Case 1: Unix and Cygwin platform

   1. autoreconf -vfi   (* case: configure script is not found.)

   2. ./configure
   3. make
   4. make install

   * uninstall

     make uninstall

   * configuration check

     onig-config --cflags
     onig-config --libs
     onig-config --prefix
     onig-config --exec-prefix



 Case 2: Windows 64/32bit platform (Visual Studio)

   execute make_win64 or make_win32

      src/onig_s.lib:  static link library
      src/onig.dll:    dynamic link library

  * test (ASCII/Shift_JIS)
      1. cd src
      2. copy ..\windows\testc.c .
      3. nmake -f Makefile.windows ctest

  (I have checked by Visual Studio Community 2015)



Regular Expressions

  See doc/RE (or doc/RE.ja for Japanese).


Usage

  Include oniguruma.h in your program. (Oniguruma API)
  See doc/API for Oniguruma API.

  If you want to disable UChar type (== unsigned char) definition
  in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then 
  include oniguruma.h.

  If you want to disable regex_t type definition in oniguruma.h,
  define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h.

  Example of the compiling/linking command line in Unix or Cygwin,
  (prefix == /usr/local case)

    cc sample.c -L/usr/local/lib -lonig


  If you want to use static link library(onig_s.lib) in Win32,
  add option -DONIG_EXTERN=extern to C compiler.



Sample Programs

  sample/simple.c    example of the minimum (Oniguruma API)
  sample/names.c     example of the named group callback.
  sample/encode.c    example of some encodings.
  sample/listcap.c   example of the capture history.
  sample/posix.c     POSIX API sample.
  sample/sql.c       example of the variable meta characters.
                     (SQL-like pattern matching)
  sample/user_property.c  example of user defined Unicode property.

Test Programs
  sample/syntax.c    Perl, Java and ASIS syntax test.
  sample/crnl.c      --enable-crnl-as-line-terminator test


Source Files

  oniguruma.h        Oniguruma API header file. (public)
  onig-config.in     configuration check program template.

  regenc.h           character encodings framework header file.
  regint.h           internal definitions
  regparse.h         internal definitions for regparse.c and regcomp.c
  regcomp.c          compiling and optimization functions
  regenc.c           character encodings framework.
  regerror.c         error message function
  regext.c           extended API functions. (deluxe version API)
  regexec.c          search and match functions
  regparse.c         parsing functions.
  regsyntax.c        pattern syntax functions and built-in syntax definitions.
  regtrav.c          capture history tree data traverse functions.
  regversion.c       version info function.
  st.h               hash table functions header file
  st.c               hash table functions

  oniggnu.h          GNU regex API header file. (public)
  reggnu.c           GNU regex API functions

  onigposix.h        POSIX API header file. (public)
  regposerr.c        POSIX error message function.
  regposix.c         POSIX API functions.

  mktable.c          character type table generator.
  ascii.c            ASCII encoding.
  euc_jp.c           EUC-JP encoding.
  euc_tw.c           EUC-TW encoding.
  euc_kr.c           EUC-KR, EUC-CN encoding.
  sjis.c             Shift_JIS encoding.
  big5.c             Big5      encoding.
  gb18030.c          GB18030   encoding.
  koi8.c             KOI8      encoding.
  koi8_r.c           KOI8-R    encoding.
  cp1251.c           CP1251    encoding.
  iso8859_1.c        ISO-8859-1  encoding. (Latin-1)
  iso8859_2.c        ISO-8859-2  encoding. (Latin-2)
  iso8859_3.c        ISO-8859-3  encoding. (Latin-3)
  iso8859_4.c        ISO-8859-4  encoding. (Latin-4)
  iso8859_5.c        ISO-8859-5  encoding. (Cyrillic)
  iso8859_6.c        ISO-8859-6  encoding. (Arabic)
  iso8859_7.c        ISO-8859-7  encoding. (Greek)
  iso8859_8.c        ISO-8859-8  encoding. (Hebrew)
  iso8859_9.c        ISO-8859-9  encoding. (Latin-5 or Turkish)
  iso8859_10.c       ISO-8859-10 encoding. (Latin-6 or Nordic)
  iso8859_11.c       ISO-8859-11 encoding. (Thai)
  iso8859_13.c       ISO-8859-13 encoding. (Latin-7 or Baltic Rim)
  iso8859_14.c       ISO-8859-14 encoding. (Latin-8 or Celtic)
  iso8859_15.c       ISO-8859-15 encoding. (Latin-9 or West European with Euro)
  iso8859_16.c       ISO-8859-16 encoding.
                     (Latin-10 or South-Eastern European with Euro)
  utf8.c             UTF-8    encoding.
  utf16_be.c         UTF-16BE encoding.
  utf16_le.c         UTF-16LE encoding.
  utf32_be.c         UTF-32BE encoding.
  utf32_le.c         UTF-32LE encoding.
  unicode.c          common codes of Unicode encoding.

  win32/Makefile     Makefile for Win32 (VC++)
  win32/config.h     config.h for Win32


and I'm thankful to Akinori MUSHA.