[lxc-devel] [lxc/lxc] 4ccb88: compiler: -Wendif-labels hardening

Stéphane Graber noreply at github.com
Tue Feb 5 23:24:48 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 4ccb88781399b3d3d5028ed24594b56f679a7145
      https://github.com/lxc/lxc/commit/4ccb88781399b3d3d5028ed24594b56f679a7145
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-02-05 (Tue, 05 Feb 2019)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  compiler: -Wendif-labels hardening

Do not warn whenever an #else or an #endif are followed by text.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: a703da6c84617ed49d145fba1b095f0130d3d3e0
      https://github.com/lxc/lxc/commit/a703da6c84617ed49d145fba1b095f0130d3d3e0
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-02-05 (Tue, 05 Feb 2019)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  compiler: -Werror=overflow hardening

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 64871d419de4326ce4976a2a57ed73089866c626
      https://github.com/lxc/lxc/commit/64871d419de4326ce4976a2a57ed73089866c626
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-02-05 (Tue, 05 Feb 2019)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  compiler: -fdiagnostics-show-option

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 3b5a0eebd4d2efdaa03c6fb11950abfcf081fab8
      https://github.com/lxc/lxc/commit/3b5a0eebd4d2efdaa03c6fb11950abfcf081fab8
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-02-05 (Tue, 05 Feb 2019)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  compiler: fix -fstack-protector-strong

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 463bee7b8d76b299c5c5c24c27830df80b9f2b84
      https://github.com/lxc/lxc/commit/463bee7b8d76b299c5c5c24c27830df80b9f2b84
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-02-05 (Tue, 05 Feb 2019)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  compiler: -Werror=shift-count-overflow hardening

Warn if shift count >= width of type.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: fcfce08abac5cf1271bc3034d4017d4a714154cc
      https://github.com/lxc/lxc/commit/fcfce08abac5cf1271bc3034d4017d4a714154cc
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-02-05 (Tue, 05 Feb 2019)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  compiler: -Werror=shift-overflow=2 hardening

Warn about left shift overflows. This warning is enabled by default in
C99 and C++11 modes (and newer).

-Wshift-overflow=2
This warning level also warns about left-shifting 1 into the sign bit,
unless C++14 mode (or newer) is active.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: a30c52acb75b4820a45412a8367ba4ebae3a7d27
      https://github.com/lxc/lxc/commit/a30c52acb75b4820a45412a8367ba4ebae3a7d27
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-02-05 (Tue, 05 Feb 2019)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  compiler: -Wdate-time hardening

Warn when macros __TIME__, __DATE__ or __TIMESTAMP__ are encountered as
they might prevent bit-wise-identical reproducible compilations.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: d0afbad9a4bb5db59de4f6fdc54e6b270b48bffa
      https://github.com/lxc/lxc/commit/d0afbad9a4bb5db59de4f6fdc54e6b270b48bffa
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-02-06 (Wed, 06 Feb 2019)

  Changed paths:
    M configure.ac
    M src/tests/lxc-test-utils.c

  Log Message:
  -----------
  compiler: -Wnested-externs hardening

Warn if an extern declaration is encountered within a function.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 0220bddaac18bf1dc985ac5266070154c2a8a1be
      https://github.com/lxc/lxc/commit/0220bddaac18bf1dc985ac5266070154c2a8a1be
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2019-02-05 (Tue, 05 Feb 2019)

  Changed paths:
    M configure.ac
    M src/tests/lxc-test-utils.c

  Log Message:
  -----------
  Merge pull request #2824 from brauner/2019-02-05/compiler_based_hardening

compiler: hardening


Compare: https://github.com/lxc/lxc/compare/4e950c76ed60...0220bddaac18


More information about the lxc-devel mailing list