Ancestors

Toot

Written by Arseny Kapoulkine on 2025-01-14 at 23:21

Using C++03 apparently can break your STL vector implementation completely, nice.

=> View attached media

=> More informations about this toot | More toots from zeux@mastodon.gamedev.place

Descendants

Written by Fabian Giesen on 2025-01-14 at 23:25

@zeux just a special hand grenade, as a treat

=> More informations about this toot | More toots from rygorous@mastodon.gamedev.place

Written by Daniel Gibson on 2025-01-14 at 23:30

@zeux

Can that code fail though?

It looks like it grows the array by __n elements or something like that, so len should be >= __n + (__old_start - __old_finish) ?

=> More informations about this toot | More toots from Doomed_Daniel@mastodon.gamedev.place

Written by Arseny Kapoulkine on 2025-01-14 at 23:54

@Doomed_Daniel start & finish subtraction is reversed.

=> More informations about this toot | More toots from zeux@mastodon.gamedev.place

Written by Daniel Gibson on 2025-01-14 at 23:56

@zeux

oops, yeah :-D

=> More informations about this toot | More toots from Doomed_Daniel@mastodon.gamedev.place

Written by Billy O'Neal on 2025-01-15 at 00:45

@zeux Which implementation did that?

=> More informations about this toot | More toots from malwareminigun@infosec.exchange

Written by Arseny Kapoulkine on 2025-01-15 at 01:11

@malwareminigun This is libstdc++, https://gcc.gnu.org/git/?p=gcc.git;a=blobdiff;f=libstdc%2B%2B-v3/include/bits/vector.tcc;h=c500aab9e561f9e5742bac6732606824ede1d99e;hp=36b27dce7b99ecc45bb62eb4350efb82eec296c4;hb=0426be454448f8cfb9db21f4f669426afb7b57c8;hpb=f3d6d60d2ae584a23bb7c681cbd511202953c391

=> More informations about this toot | More toots from zeux@mastodon.gamedev.place

Written by Billy O'Neal on 2025-01-15 at 01:22

@zeux Hmmmm @jw you might be interested in this.

=> More informations about this toot | More toots from malwareminigun@infosec.exchange

Written by J.W. on 2025-01-15 at 09:27

@malwareminigun @zeux

Got it, thanks!

=> More informations about this toot | More toots from jw@mastodon.social

Written by Arseny Kapoulkine on 2025-01-15 at 16:17

@jw @malwareminigun filed as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118493 fwiw

=> More informations about this toot | More toots from zeux@mastodon.gamedev.place

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113829272685614530
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
260.148627 milliseconds
Gemini-to-HTML Time
1.858884 milliseconds

This content has been proxied by September (ba2dc).