xmpsdk: Build with -DBanAllEntityUsage=1
Prevent a denial-service-attack related to XML entity expansion
("billion laughs attack").
See https://bugzilla.redhat.com/show_bug.cgi?id=888769
Search for BanAllEntityUsage in xmpsdk/src/ExpatAdapter.cpp
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit e44d1dbe769f3b60a3d671be310f4af4f9490e6b)
This commit is contained in:
parent
ad95969a08
commit
189da93480
@ -38,6 +38,10 @@ target_include_directories(exiv2-xmp
|
||||
${EXPAT_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
# Prevent a denial-service-attack related to XML entity expansion
|
||||
# ("billion laughs attack").
|
||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=888769
|
||||
target_compile_definitions(exiv2-xmp PRIVATE BanAllEntityUsage=1)
|
||||
if (MSVC)
|
||||
target_compile_definitions(exiv2-xmp PRIVATE XML_STATIC)
|
||||
endif()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user