Earlier quoted context omitted.
So what do you suggest?
[flagged]
GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
11–20 of 54 posts
Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#12Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#13This is incredible and would make for an excellent teaching tool! For students it’s generally not helpful just to crash with “invalid access.” They need to be shown where the overflow occurred and ideally what reads/writes caused it.
Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#14Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#15Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#16It looks very cool, but how do screen readers parse this? My guess is not well.
How well do screen readers parse other compiler errors?
This isn’t me trying to be snarky, I actually have no idea! Reading a C++ template error is hard enough as a sighted person
Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#17Need the `-Wanalyzer-out-of-bounds` option and it's only static. At compile time so.
It can catch easy one, not the obscures cases.
Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#18Had to check the article date at first to see if the "-Wanalyzer-infinite-loop" was a play on casually solving the halting problem with a gcc flag!
Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#19That looks fantastic.
and makes this particular release of GCC (14.1) the coolest ever. indeed I have been teaching intro to C++ with similar box-like diagrams, and you know what - it takes a second for everyone in a group of 20 people to understand not only pointers, references, and buffer overruns, but also virtual tables, difference between composition and inheritance, and how the memory gets composed. visual explanations have long been a very very very weak spot in most university publications.
it is with great relief that I find ML people using lots of visual explaining rather than more weird 17th century crypto-language.
as a side-note Edward Tufte wrote a book called Visual Explanations: Images and Quantities, Evidence and Narrative. highly recommended and inspiration for above-mentioned approach.
Re: GCC 14 Boasts Nice ASCII Art for Visualizing Buffer Overflows
#20[flagged]