cmake: don't disable _FORTIFY_SOURCE - #5227
Conversation
This was inherited from libaom, which inherited it from libvpx, where it was added long ago as an attempt for compatibility across glibc versions. Formalizing it in the build was never a great idea as this provides some security benefits. Projects like Gentoo have removed this from the build flags for some time. CFLAGS/AVM_EXTRA_C_FLAGS can still be used to set these values if needed. This matches the changes in libvpx and libaom: 368c5f89d configure: don't disable _FORTIFY_SOURCE ec0dedc1a2 cmake: don't disable _FORTIFY_SOURCE
|
The build failure looks like a preexisting condition: I made some updates to this file in libaom recently to clear some clang-19 static analysis warnings, but I didn't get to this particular call. |
|
James: I remember your CL for the aom_dsp/grain_table.c file in libaom and we discussed that |
You're right. The comments have the detail about the last remaining issues in this file. From what I remember more checks than were necessary were needed to satisfy the static analyzer, but I didn't keep the patch around. The html report for those errors is in the libaom static analysis job: Note the last two links may be unstable. |
This was inherited from libaom, which inherited it from libvpx, where it
was added long ago as an attempt for compatibility across glibc
versions. Formalizing it in the build was never a great idea as this
provides some security benefits. Projects like Gentoo have removed this
from the build flags for some time.
CFLAGS/AVM_EXTRA_C_FLAGS can still be used to set these values if
needed.
This matches the changes in libvpx and libaom:
368c5f89d configure: don't disable _FORTIFY_SOURCE
ec0dedc1a2 cmake: don't disable _FORTIFY_SOURCE