[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/13] Avoid uninitialized read
From: |
Philipp Stephani |
Subject: |
[PATCH 13/13] Avoid uninitialized read |
Date: |
Sat, 20 May 2017 16:58:41 +0200 |
* 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 27c5792800..33d053363f 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4261,6 +4261,8 @@ in certain situations (rapid incoming events).
q_event_ptr = NULL;
unblock_input ();
}
+ else
+ return -1;
return nevents;
}
--
2.13.0
- [PATCH 05/13] Make a function static that isn't used outside this file, (continued)
- [PATCH 05/13] Make a function static that isn't used outside this file, Philipp Stephani, 2017/05/20
- [PATCH 04/13] Use NSCharacterCollection instead of CTCharacterCollection, Philipp Stephani, 2017/05/20
- [PATCH 03/13] Remove unused function print_regions, Philipp Stephani, 2017/05/20
- [PATCH 07/13] Remove trailing semicolons in method definitions, Philipp Stephani, 2017/05/20
- [PATCH 09/13] Nextstep: Replace deprecated enumerators, Philipp Stephani, 2017/05/20
- [PATCH 08/13] Nextstep: remove some deprecated method calls, Philipp Stephani, 2017/05/20
- [PATCH 06/13] Remove calls to deprecated setUsesScreenFonts, Philipp Stephani, 2017/05/20
- [PATCH 10/13] Remove unused automatic variables, Philipp Stephani, 2017/05/20
- [PATCH 11/13] Clean up code around 'ns-list-services', Philipp Stephani, 2017/05/20
- [PATCH 12/13] Fix call of registerServicesMenuSendTypes, Philipp Stephani, 2017/05/20
- [PATCH 13/13] Avoid uninitialized read,
Philipp Stephani <=
- Re: [PATCH 01/13] Nextstep: Use instancetype explicit return type, Paul Eggert, 2017/05/20
- Re: [PATCH 01/13] Nextstep: Use instancetype explicit return type, Paul Eggert, 2017/05/21