Fixed bug in 'lua_upvaluejoin'

Bug-fix: joining an upvalue with itself could cause a use-after-free
crash.
This commit is contained in:
Roberto Ierusalimschy
2019-03-27 14:30:12 -03:00
parent f059c2bcc8
commit 89aee84cbc
3 changed files with 41 additions and 39 deletions

View File

@@ -58,9 +58,9 @@ MYLDFLAGS= $(LOCAL) -Wl,-E
MYLIBS= -ldl -lreadline
CC= clang-3.8
CC= gcc
CFLAGS= -Wall -O2 $(MYCFLAGS)
AR= ar rcu
AR= ar rc
RANLIB= ranlib
RM= rm -f