[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6f1f882 13/13: Avoid uninitialized read
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master 6f1f882 13/13: Avoid uninitialized read |
Date: |
Sun, 21 May 2017 15:51:48 -0400 (EDT) |
branch: master
commit 6f1f88224c62dfb7b311dc1a57db267d118cae5c
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
Avoid uninitialized read
* src/nsterm.m (ns_read_socket): Don't read uninitialized variable
'nevents'.
---
src/nsterm.m | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/nsterm.m b/src/nsterm.m
index c832013..e69aa43 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4261,6 +4261,8 @@ ns_read_socket (struct terminal *terminal, struct
input_event *hold_quit)
q_event_ptr = NULL;
unblock_input ();
}
+ else
+ return -1;
return nevents;
}
- [Emacs-diffs] master updated (0821292 -> 6f1f882), Philipp Stephani, 2017/05/21
- [Emacs-diffs] master cf68bb4 02/13: Declare Nextstep unexec functions in lisp.h, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master cc6db8b 05/13: Make a function static that isn't used outside this file, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 0446a5a 04/13: Use NSCharacterCollection instead of CTCharacterCollection, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 6f1f882 13/13: Avoid uninitialized read,
Philipp Stephani <=
- [Emacs-diffs] master f04e3d6 07/13: Remove trailing semicolons in method definitions, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 2d8215a 10/13: Remove unused automatic variables, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 74d4304 09/13: Nextstep: Replace deprecated enumerators, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 762be77 08/13: Nextstep: remove some deprecated method calls, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 6dd94bc 11/13: Clean up code around 'ns-list-services', Philipp Stephani, 2017/05/21
- [Emacs-diffs] master d79a4ea 03/13: Remove unused function print_regions, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master add0b69 06/13: Remove calls to deprecated setUsesScreenFonts, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 84b28ec 01/13: Nextstep: Use instancetype explicit return type, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master fa389f5 12/13: Fix call of registerServicesMenuSendTypes, Philipp Stephani, 2017/05/21