[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29523: 25.3; buffer overflow in ns-font-name on mac
From: |
Eli Zaretskii |
Subject: |
bug#29523: 25.3; buffer overflow in ns-font-name on mac |
Date: |
Sat, 02 Dec 2017 10:10:09 +0200 |
> Date: Fri, 1 Dec 2017 19:43:08 +0000
> From: Alan Third <alan@idiocy.org>
> Cc: 29523@debbugs.gnu.org
>
> > The bug is in ns_xlfd_to_fontname() in nsterm.m:
> >
> > if (!strncmp (xlfd, "--", 2))
> > sscanf (xlfd, "--%*[^-]-%[^-]179-", name);
> > else
> > sscanf (xlfd, "-%*[^-]-%[^-]179-", name);
> >
> > The positions of "179" are incorrect. They should be:
> >
> > if (!strncmp (xlfd, "--", 2))
> > sscanf (xlfd, "--%*[^-]-%179[^-]-", name);
> > else
> > sscanf (xlfd, "-%*[^-]-%179[^-]-", name);
>
> Thanks for the fix. I expect this is copyright exempt
It is.
Thanks.