Add fortify option 24/175624/1 accepted/tizen/unified/20180423.062742 submit/tizen/20180419.231843
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 11 Apr 2018 07:16:08 +0000 (16:16 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 11 Apr 2018 07:16:08 +0000 (16:16 +0900)
Change-Id: I9da6f9a3b1638e2ce634d3927099dbaedd608d90
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/capi-media-image-util.spec

index c2ffffd..db543ae 100755 (executable)
@@ -45,7 +45,7 @@ Image Utility Library - Tools.
 cp %{SOURCE1001} .
 
 %build
-export CFLAGS+=" -Wextra -Wno-array-bounds"
+export CFLAGS+=" -Wextra -Wno-array-bounds -D_FORTIFY_SOURCE=2"
 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
 export CFLAGS+=" -Wwrite-strings -Wswitch-default"
 export CFLAGS+=" -DGIF_ENCODER_V2"