Using C++03 apparently can break your STL vector implementation completely, nice.
=> More informations about this toot | More toots from zeux@mastodon.gamedev.place
@zeux just a special hand grenade, as a treat
=> More informations about this toot | More toots from rygorous@mastodon.gamedev.place
@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
@Doomed_Daniel start & finish subtraction is reversed.
=> More informations about this toot | More toots from zeux@mastodon.gamedev.place
@zeux
oops, yeah :-D
=> More informations about this toot | More toots from Doomed_Daniel@mastodon.gamedev.place
@zeux Which implementation did that?
=> More informations about this toot | More toots from malwareminigun@infosec.exchange
@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
@zeux Hmmmm @jw you might be interested in this.
=> More informations about this toot | More toots from malwareminigun@infosec.exchange
@malwareminigun @zeux
Got it, thanks!
=> More informations about this toot | More toots from jw@mastodon.social
@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 This content has been proxied by September (ba2dc).Proxy Information
text/gemini