bug#29051: Error in `parted': realloc(): invalid next size

Phil Susi <[email protected]>
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
On 11/17/2017 4:13 AM, Seth Finkelstein wrote:
> Here it is, in base64 format:

Thanks.  It appears that you have some non printing characters in your
partition names.  parted/table.c was using wcswidth() to check the width
of the name in characters, but this function returns -1 if there are non
printable characters, and that causes parted to add one extra space of
padding and overflow the string buffer.  I'll post a patch to fix that
momentarily.


On a related note, after fixing it I noticed that the columns in the
table still do not line up right.  It looks like these kanji? characters
are extra wide so they push the next column over more than parted
expects and pads for.  Isn't that not supposed to happen when you are
using a fixed width font?
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJaKuTvAAoJENsuw7lhAP6Ey1cIAM8DePeMxlnjDYgWYNRlTfvf
HWUhTt80yxMl2GvrnYSuxazi5+nzAHb+8g0k5/a/EQlDg9qE9uUjDDVNeBBYSqBC
MWD6gh0SKWoyWtfF38lcDlJOxARmyXcTA2lwS+rGtCZU2NFjtfKjQrI/LBsOnNU+
iw9Unj4g9TNCm+veOziRz4wepnMN0k/pCv6IYiTpZ/mtqb/v9OJWQvtyhCAxCNrJ
VT1OfPVG++JKbLzxhOUx09Rqjxt29PcyyFQSSl5m6+ju0GHBRhr2uzbVTSqnBcmf
RLFT9170VIimjLR94O0HSAPtJunAHMGupGHw6hAEWLWso1XJgEJUvk0AZ33vpUA=
=V8Lu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.