Subject: bug#50339: master creashed in compact_small_strings

From: Richard Stallman <[email-masked]>
Date: Sat, 04 Sep 2021 13:18:28 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Can you tell why it crashed?  Which of the arguments to memmove were
  > bogus?

s is nonzero.  It is 0x555556fb4bc0.
from is 0x5555570edcc0

Is s supposed to be > from?

from->string is 0.  Strange.

size is 0x511be45adaa18398
nbytes is 0x511be45adaa1838d

That value of size was used to calculate from_end and to_end.

I am guessing how
to find out in GDB what the data at s says nbytes ought to be.
But s->u.s.size is 6.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)