px5g-standalone: activate format-security checks
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Nov 2015 14:16:09 +0000 (14:16 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Nov 2015 14:16:09 +0000 (14:16 +0000)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 47583

package/utils/px5g-standalone/Makefile
package/utils/px5g-standalone/src/library/x509write.c

index bd0267693b43a9cdcb4fe275bb16652bef14e850..38f60c376207a15bb0b61656667115f5a31a5932 100644 (file)
@@ -11,7 +11,6 @@ PKG_NAME:=px5g-standalone
 PKG_RELEASE:=2
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
-PKG_CHECK_FORMAT_SECURITY:=0
 
 include $(INCLUDE_DIR)/package.mk
 
index 10915687459d0ba58ff38184d0df568336b92615..2b0eb715630cf13e9d8e349451d1d1335f3dbd88 100644 (file)
@@ -570,7 +570,7 @@ static int x509write_file(x509_node *node, char *path, int format,
             break;
 
         case X509_OUTPUT_PEM:
-            if (fprintf(ofstream,pem_prolog)<0) {
+            if (fprintf(ofstream, "%s", pem_prolog)<0) {
                 is_err = -1;
                 break;
             }
@@ -589,7 +589,7 @@ static int x509write_file(x509_node *node, char *path, int format,
                 fprintf(ofstream,"%.64s\n",&base_buf[i]);
             }
 
-            if (fprintf(ofstream, pem_epilog)<0) {
+            if (fprintf(ofstream, "%s", pem_epilog)<0) {
                 is_err = -1;
                 break;
             }