Fixed, vim crashes on startup 49/170349/1 accepted/tizen_5.0_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_6.0_base_tool_hotfix tizen_5.0_base tizen_5.5_base_mobile_hotfix tizen_5.5_tv tizen_6.0_base_hotfix accepted/tizen/5.0/base/20181101.091528 accepted/tizen/5.5/base/20191030.082841 accepted/tizen/5.5/base/mobile/hotfix/20201023.084009 accepted/tizen/6.0/base/20201029.105939 accepted/tizen/6.0/base/tool/20201029.111644 accepted/tizen/6.0/base/tool/hotfix/20201030.124448 accepted/tizen/6.0/base/tool/hotfix/20201102.085604 accepted/tizen/base/20180223.183406 submit/tizen_5.0_base/20181101.000002 submit/tizen_5.0_base/20191220.010310 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171502 submit/tizen_6.0_base/20201029.184802 submit/tizen_6.0_base_hotfix/20201030.192502 submit/tizen_6.0_base_hotfix/20201102.162702 submit/tizen_base/20180219.093135 tizen_5.5.m2_release tizen_6.0.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 19 Feb 2018 09:08:06 +0000 (18:08 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 19 Feb 2018 09:08:06 +0000 (18:08 +0900)
"/etc/info.ini" 10L, 171C*** buffer overflow detected ***: vi terminated
======= Backtrace: =========
/lib/libc.so.6(+0x650d8)[0xb6a170d8]
/lib/libc.so.6(__fortify_fail+0x40)[0xb6a91404]
/lib/libc.so.6(__chk_fail+0x10)[0xb6a8f560]
/lib/libc.so.6(__memmove_chk+0x0)[0xb6a8e7a8]

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] vim crashed on startup
[Cause & Measure] compile option changed
"-D_FORTIFY_SOURCE=2" to "-D_FORTIFY_SOURCE=1"
[Checking Method] "vim /etc/info.ini" command

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: Ideb86e632faf2cb193f261ea959ddf1e7a2492df
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
src/Makefile

index bcd8723..af6d10b 100644 (file)
@@ -598,7 +598,7 @@ CONF_OPT_FEAT = --with-features=huge
 
 # Use this with GCC to check for mistakes, unused arguments, etc.
 #CFLAGS = -g -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
-CFLAGS = -g -O2 -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -fstack-protector-strong -Wl,-z,relro -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC
+CFLAGS = -g -O2 -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -fstack-protector-strong -Wl,-z,relro -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -fPIC
 #CFLAGS = -g -O2 -Wall -Wextra -Wmissing-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DU_DEBUG
 #PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
 #MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter