Commit bc26a98d authored by Sergei Golovan's avatar Sergei Golovan Committed by Sergei Golovan

* Added patch by upstream which fixes crash during exact string matching

    in expect command if the search pattern contains non-ASCII characters.
parent 3d9b8f30
expect (5.44.1.15-4) UNRELEASED; urgency=low
expect (5.44.1.15-4) unstable; urgency=low
* NOT RELEASED YET
* Added patch by upstream which fixes crash during exact string matching
in expect command if the search pattern contains non-ASCII characters.
-- Sergei Golovan <sgolovan@debian.org> Mon, 06 Sep 2010 15:43:15 +0400
-- Sergei Golovan <sgolovan@debian.org> Wed, 27 Oct 2010 10:29:04 +0400
expect (5.44.1.15-3) unstable; urgency=low
......
Author: Upstream
Description: Patch fixes segfault for matching exact string with
non-ASCII characters in it.
Bug: https://sourceforge.net/tracker/?func=detail&aid=3095935&group_id=13179&atid=313179
--- expect-5.44.1.15.orig/expect.c
+++ expect-5.44.1.15/expect.c
@@ -946,6 +946,9 @@
expDiagLogU(expPrintify(Tcl_GetString(e->pat)));
expDiagLog("\"? ");
if (p) {
+ /* Bug 3095935. Go from #bytes to #chars */
+ patLength = Tcl_NumUtfChars (pat, patLength);
+
e->simple_start = p - str;
o->e = e;
o->matchlen = patLength;
......@@ -15,3 +15,4 @@
18-non-linux.patch
19-tk-init.patch
20-two-asterisks.patch
21-match.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment