Bug #526

GCC returns warning when compiling plugin/tif ("format not a string literal and no format arguments")

Added by Zbigniew Rebacz about 11 years ago. Updated about 11 years ago.

Status:ApprovedStart date:09/22/2013
Priority:LowDue date:
Assignee:Zbigniew Rebacz% Done:

100%

Category:GeneralSpent time:-
Target version:-

Description

It seems that gcc returns following warning: "format not a string literal and no format arguments [-Wformat-security]" when compiling plugin/tif. The solution is relatively easy. We need to replace dangerous command "TIFFError(TIFFFileName(tiff), emsg);" by more secure "TIFFError(TIFFFileName(tiff), "%s", emsg);". I enclose improved source file (plugin/tif/tifupp.cpp).

tifupp.cpp Magnifier (33.9 KB) Zbigniew Rebacz, 09/22/2013 09:41 PM

History

#1 Updated by Zbigniew Rebacz about 11 years ago

  • Status changed from New to Ready for QA

#2 Updated by Miroslav Fidler about 11 years ago

  • Status changed from Ready for QA to Approved

Also available in: Atom PDF