]> git.eshelyaron.com Git - emacs.git/commit
Don't rely on copying in {EN,DE}CODE_FILE
authorMattias Engdegård <mattiase@acm.org>
Mon, 6 Apr 2020 13:20:08 +0000 (15:20 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 9 Apr 2020 09:34:48 +0000 (11:34 +0200)
commit402cbc5be26827244075dbe14288e7722290f83a
tree6238d25cbd648e14cb1dcc309a8542fc312e40bf
parent20eb4247cdc2eeada43c3de8abf9c577be38c98f
Don't rely on copying in {EN,DE}CODE_FILE

Callers of ENCODE_FILE and DECODE_FILE should not assume that these
functions always return a new string (bug#40407).

* src/w32fns.c (Fw32_shell_execute):
* src/w32proc.c (Fw32_application_type):
Sink taking the address of a Lisp string past GC points.
Copy values returned from ENCODE_FILE before mutating them.
src/w32fns.c
src/w32proc.c