Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7-1]: src/sys/modules/lua Pull up following revision(s) (requeste...
details: https://anonhg.NetBSD.org/src/rev/a1b9bed94cb7
branches: netbsd-7-1
changeset: 800753:a1b9bed94cb7
user: snj <snj%NetBSD.org@localhost>
date: Sun Jul 23 05:56:36 2017 +0000
description:
Pull up following revision(s) (requested by mbalmer in ticket #1418):
sys/modules/lua/lua.c: revision 1.21
Avoid possible null pointer dereferencing.
Fixes PR kern/52225.
diffstat:
sys/modules/lua/lua.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 365c87393b07 -r a1b9bed94cb7 sys/modules/lua/lua.c
--- a/sys/modules/lua/lua.c Thu Jul 20 01:43:30 2017 +0000
+++ b/sys/modules/lua/lua.c Sun Jul 23 05:56:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lua.c,v 1.13.2.3 2016/05/22 10:28:49 martin Exp $ */
+/* $NetBSD: lua.c,v 1.13.2.3.4.1 2017/07/23 05:56:36 snj Exp $ */
/*
* Copyright (c) 2014 by Lourival Vieira Neto <lneto%NetBSD.org@localhost>.
@@ -334,10 +334,12 @@
}
K = kluaL_newstate(create->name, create->desc, IPL_NONE);
- K->ks_user = true;
if (K == NULL)
return ENOMEM;
+
+ K->ks_user = true;
+
if (lua_verbose)
device_printf(sc->sc_dev, "state %s created\n",
create->name);
Home |
Main Index |
Thread Index |
Old Index