Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
5bf64749
Commit
5bf64749
authored
Aug 31, 2012
by
Andreas Schwab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes: debbugs:12306
* etags.c (consider_token): Always zero-terminate token buffer.
parent
862382df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
lib-src/ChangeLog
lib-src/ChangeLog
+5
-0
lib-src/etags.c
lib-src/etags.c
+1
-0
No files found.
lib-src/ChangeLog
View file @
5bf64749
2012-08-31 Andreas Schwab <schwab@linux-m68k.org>
* etags.c (consider_token): Always zero-terminate token buffer.
(Bug#12306)
2012-08-19 Paul Eggert <eggert@cs.ucla.edu>
Rely on <config.h> + <unistd.h> to declare 'environ'.
...
...
lib-src/etags.c
View file @
5bf64749
...
...
@@ -2878,6 +2878,7 @@ consider_token (register char *str, register int len, register int c, int *c_ext
objdef
=
omethodtag
;
linebuffer_setlen
(
&
token_name
,
oldlen
+
len
);
memcpy
(
token_name
.
buffer
+
oldlen
,
str
,
len
);
token_name
.
buffer
[
oldlen
+
len
]
=
'\0'
;
return
TRUE
;
}
return
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment