[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
who.c vs gcc-7's improved buffer overrun check
From: |
Jim Meyering |
Subject: |
who.c vs gcc-7's improved buffer overrun check |
Date: |
Thu, 22 Sep 2016 08:03:59 -0700 |
I was intrigued to see my just-built-from-git gcc fail to compile who.c.
It's probably too soon to accept a patch like this: in case gcc's
static analysis is going to be improved enough that it can derive the
invariant that the assert makes explicit.
So, perhaps just for reference, for now, here's the patch.
If I were to push it, due diligence would require a post to the gcc
list about this, and (assuming we retain the patch) the addition of a
FIXME-in-2018 comment to see if it is still needed.
cu-who-vs-gcc7.diff
Description: Binary data
- who.c vs gcc-7's improved buffer overrun check,
Jim Meyering <=