diff options
author | athenian200 <athenian200@outlook.com> | 2019-10-02 13:25:24 -0500 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2019-10-21 04:53:41 -0500 |
commit | 7966d22df36adfd418c49558611fbd092180ea9b (patch) | |
tree | 9ba178260ada187c69b192a3de6425e99eca61b7 | |
parent | 52f2321cba8486169779773dc13a213410fc853b (diff) | |
download | UXP-7966d22df36adfd418c49558611fbd092180ea9b.tar UXP-7966d22df36adfd418c49558611fbd092180ea9b.tar.gz UXP-7966d22df36adfd418c49558611fbd092180ea9b.tar.lz UXP-7966d22df36adfd418c49558611fbd092180ea9b.tar.xz UXP-7966d22df36adfd418c49558611fbd092180ea9b.zip |
MoonchildProductions#1251 - Part 11: libpng uses C89 now to avoid buffer overflows.
https://bugzilla.mozilla.org/show_bug.cgi?id=1371266
https://github.com/glennrp/libpng/commit/12e63e91af1378225993b36e25ce3252b54e751a
This sounds absurd, and the fact that we had to change a C++ comment to a C-style comment on account of this may seem hilarious and inconsequential, but this isapparently not a joke and leaving it as it is now may be a bad idea.
-rw-r--r-- | media/libpng/moz.build | 3 | ||||
-rw-r--r-- | mozilla-config.h.in | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/media/libpng/moz.build b/media/libpng/moz.build index 9146a8d5a..782aa93df 100644 --- a/media/libpng/moz.build +++ b/media/libpng/moz.build @@ -51,3 +51,6 @@ FINAL_LIBRARY = 'gkmedias' # We allow warnings for third-party code that can be updated from upstream. ALLOW_COMPILER_WARNINGS = True + +if CONFIG['GNU_CC'] + CFLAGS += ['std=c89'] diff --git a/mozilla-config.h.in b/mozilla-config.h.in index 7484180b0..6883a7be2 100644 --- a/mozilla-config.h.in +++ b/mozilla-config.h.in @@ -13,7 +13,7 @@ #endif #endif -// Expands to all the defines from configure. +/* Expands to all the defines from configure. */ #undef ALLDEFINES /* |