[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 0/4] Crash fixed on Win x64

From: Karlson2k
Subject: [PATCH v2 0/4] Crash fixed on Win x64
Date: Mon, 4 Apr 2016 16:05:36 +0300

Missed main patch in previous attempt.
First patch is direct fix for crash on Win64 (as result of invalid pointer
casting), also fix possible crash on any platform with 
sizeof(size_t) != sizeof(long).
Second patch is similar fix for function that are not (yet) crashing.
Third patch is optional fixes for int/size_tr.
Last patch is some kind of optimization and protection for buffer overruns -
once size of string is computed in any function, it will be reused in
subsequent called internal functions.

Karlson2k (4):
  nfkc.c: Fix incorrect "items_written" returned by
    stringprep_utf8_to_ucs4() on platforms with sizeof(size_t) !=
    sizeof(long) (i.e. Win x64). Also fixed crash in various function
    which use value of "items_written" (like tld_check_8z(),
  nfkc.c: Fixed invalid variable types and invalid pointer casting.
  nfkc.c: int/size_t fixes in find_decomposition()
  nfkc.c: reuse internally calculated lengths for buffer overrun
    protection, adjust internal API to public API: use ether string
    length OR null-termination, and do not stop processing on null char
    if length is specified.

 lib/nfkc.c | 61 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 34 insertions(+), 27 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]