emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#50764: closed (Fix (string-distance "" "") edge-case)


From: GNU bug Tracking System
Subject: bug#50764: closed (Fix (string-distance "" "") edge-case)
Date: Thu, 23 Sep 2021 17:13:02 +0000

Your message dated Thu, 23 Sep 2021 19:12:30 +0200
with message-id <FFD6FE62-0CF2-4C1A-9352-4CB64E24A0BE@acm.org>
and subject line bug#50764: Fix (string-distance "" "") edge-case
has caused the debbugs.gnu.org bug report #50764,
regarding Fix (string-distance "" "") edge-case
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
50764: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=50764
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Fix (string-distance "" "") edge-case Date: Thu, 23 Sep 2021 16:16:42 +0000
Tags: patch


string-distance appears to be using uninitialized memory, if the second
argument is an empty string. This leads to the function occasionally
generating random and meaningless results. This patch ensures that the
entire memory is initialized before it is accessed, fixing the results
for edge cases with empty strings.

In GNU Emacs 28.0.50 (build 13, x86_64-pc-linux-gnu, X toolkit, cairo version 
1.16.0, Xaw scroll bars)
 of 2021-09-23 built on icterid
Repository revision: bb5d8582f75712c3610795aa5ead79600308f8bb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux 11 (bullseye)

Configured using:
 'configure LDFLAGS=-flto 'CFLAGS=-O2 -march=native -mtune=native -pipe'
 --with-native-compilation PKG_CONFIG_PATH='

Attachment: 0001-Fix-string-distance-for-two-empty-strings.patch
Description: Text Data

-- 
        Philip K.

--- End Message ---
--- Begin Message --- Subject: bug#50764: Fix (string-distance "" "") edge-case Date: Thu, 23 Sep 2021 19:12:30 +0200
Looks like your independent test suite is already paying dividends!
Pushed with tests.



--- End Message ---

reply via email to

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