Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
916c72e9
Commit
916c72e9
authored
Mar 22, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
that could (at least in theory) be that large.
parent
b7cbbd6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/ChangeLog
src/ChangeLog
+3
-0
src/xmenu.c
src/xmenu.c
+1
-1
No files found.
src/ChangeLog
View file @
916c72e9
2011-03-22 Paul Eggert <eggert@cs.ucla.edu>
* xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
that could (at least in theory) be that large.
* xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
This is less likely to overflow, and avoids undefined behavior if
overflow does occur. All callers changed. Use strtoul to scan
src/xmenu.c
View file @
916c72e9
...
...
@@ -922,7 +922,7 @@ set_frame_menubar (FRAME_PTR f, int first_time, int deep_p)
#endif
Lisp_Object
items
;
widget_value
*
wv
,
*
first_wv
,
*
prev_wv
=
0
;
int
i
,
last_i
=
0
;
EMACS_UINT
i
,
last_i
=
0
;
int
*
submenu_start
,
*
submenu_end
;
int
*
submenu_top_level_items
,
*
submenu_n_panes
;
...
...
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