| 15 Mar 2026 |
dramforever | actually i have no idea why it seems to work in both gcc and clang | 06:05:01 |
Vladimír Čunát | What do you mean? | 06:07:01 |
Vladimír Čunát | clang implements basically all "gnu extensions" | 06:07:23 |
Vladimír Čunát | IIRC they're very compatible with gcc. | 06:07:38 |
Vladimír Čunát | Anyway, the best workaround is to disable this particular hardening in the chromium build? | 06:09:48 |
dramforever | sorry i meant it doesn't seem to be documented anywhere for gcc the FAM is accepted in c++ | 06:10:49 |
dramforever | * sorry i meant it doesn't seem to be documented anywhere for gcc that FAM is accepted in c++ | 06:10:53 |
dramforever | also yes i think we just disable that for chromium | 06:11:05 |
dramforever |  Download Screenshot_20260315_141012.png | 06:11:15 |
dramforever | i know this is windows but chromium is definitely not -fsfa clean | 06:11:26 |
Vladimír Čunát | [1] should be fine | 06:11:27 |
Vladimír Čunát | * [1] should be fine | 06:11:34 |
dramforever | oh wait | 06:11:35 |
dramforever | good point | 06:11:36 |
Vladimír Čunát | For strictflexarrays1 which is the default now. | 06:11:48 |
Vladimír Čunát | And [1] is surely fine without any C++ extensions. | 06:12:12 |
dramforever | that is a good point but i don't want to audit the entire chromium source code to see if that 8 really was the only place it explodes | 06:12:15 |
dramforever | * that is a good point but i don't want to audit the entire chromium source code to see if that single char[sizeof(uint64_t)] really was the only place it explodes | 06:12:30 |
dramforever | because the symptom is "oops spurious out of bounds, guess i'm gonna die" when it's used | 06:12:53 |
Vladimír Čunát | Yes, It would be nice to have evidence that strictflexarrays1 already is used in some larger distro-like setup. | 06:13:20 |
emily | I mean we can just hardeningDisable Chromium | 06:16:38 |
emily | so -fstrict-flex-arrays=1 allows [] but also [0] and [1] | 06:18:45 |
emily | it's just the alignment hack here that's messing it up | 06:18:50 |
emily | eh I guess I'm just repeating | 06:19:07 |
dramforever | for now, but maybe there will be more breakages | 06:19:09 |
dramforever | yeah i think we agree now | 06:19:29 |
emily | it would be nice for chromium to not be doing wrong things though | 06:19:52 |
dramforever | without relying on gnu extensions it gets ugly | 06:21:20 |
dramforever | don't know if they want to | 06:21:31 |
dramforever | * don't know if they want to just use char name[]; in c++ | 06:21:51 |