Page MenuHome GnuPG

[PATCH] dn.cpp:170:46: error: format not a string literal and no format arguments [-Werror=format-security]
Closed, ResolvedPublic

Description

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lang/cpp/src
-I../../../src -I/usr/include/qt5/QtCore -I/usr/include/qt5 -fpic
-I/usr/include/libassuan2 -DBUILDING_QGPGME -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c dn.cpp
-fPIC -DPIC -o .libs/dn.o
dn.cpp: In function 'const unsigned char* parse_dn_part({anonymous}::DnPair*,
const unsigned char*)':
dn.cpp:170:46: error: format not a string literal and no format arguments
[-Werror=format-security]

gpgrt_asprintf(&p, oidmap[i].name);
                                 ^

Details

Version
1.9.0

Revisions and Commits

Event Timeline

ignatenkobrain renamed this task from dn.cpp:170:46: error: format not a string literal and no format arguments [-Werror=format-security] to [PATCH] dn.cpp:170:46: error: format not a string literal and no format arguments [-Werror=format-security].Mar 29 2017, 7:25 AM

I accepted the patch so this ticket should have been resolved. Sorry.