Skip to content

Commit e064987

Browse files
author
Matthias Koefferlein
committed
Fixing issue #1997.
1 parent 5edb32c commit e064987

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
on Edges, Region, EdgePairs and Texts, delivering a pair of containers with
66
selected and unselected objects.
77
* Bug: %GITHUB%/issues/1993 Tiling processor kept layout locks, causing DRC issues with "with_density"
8+
* Bug: %GITHUB%/issues/1997 Can not find a file in Open Recent menu (a string unescaping bug)
89
* Bugfix: 'Save All' was not updating the dirty flag in the inactive tabs
910
* Bugfix: Fixing a crash when editing PCell parameters while the macro editor is open
1011
* Bugfix: Fixed a potential Crash on "save all"

src/tl/tl/tlString.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,8 @@ inline char unescape_char (const char * &cp)
702702
{
703703
if (safe_isdigit (*cp)) {
704704
int c = 0;
705-
while (*cp && safe_isdigit (*cp)) {
705+
unsigned int n = 0;
706+
while (*cp && safe_isdigit (*cp) && n++ < 3) {
706707
c = c * 8 + int (*cp - '0');
707708
++cp;
708709
}

src/tl/unit_tests/tlStringTests.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ TEST(10)
504504
EXPECT_EQ (escape_string ("'a\n\003"), "'a\\n\\003");
505505
EXPECT_EQ (escape_string ("'a\n\003"), "'a\\n\\003");
506506
EXPECT_EQ (unescape_string (escape_string ("'a\n\003")), "'a\n\003");
507+
EXPECT_EQ (unescape_string (escape_string ("'a\n\0031")), "'a\n\0031");
507508
}
508509

509510
TEST(11)

0 commit comments

Comments
 (0)