]> git.eshelyaron.com Git - emacs.git/commit
etags: fix #line parsing (\\", long lines)
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:20:12 +0000 (01:20 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:29:28 +0000 (18:29 +0200)
commit3bc1a3e881039cbf8c91cc8ce543aad812be6d3b
tree70d265d5f61afd76b8eb6747420285df7dcf0a90
parenta63b1b2f6a33da1aa2743607e00728c5f582caae
etags: fix #line parsing (\\", long lines)

* lib-src/etags.c (readline): Don’t mishandle lines like
‘#line 1 "a//"’, which has an escaped backslash before ‘"’.
Don’t mishandle lines so long that sscanf overflows %n.

(cherry picked from commit 7e2309c6fc67b8149cc4c75f8d7f5f93e60b86c7)
lib-src/etags.c