This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc 2.3.1: fix for the i386 inline strings code


Andreas Jaeger <aj@suse.de> writes:

> Denis Zaitsev <zzz@cd-club.ru> writes:
> 
> > Nobody has answered to me for a while, so I'm resending this
> > politely...
> >
> > This is a trivial patch for the inlined i386 strings' header.  Without
> > it, say, X11 can't be compiled with -D__USE_STRING_INLINES - a
> > problems will be caused by XtNewString and X11's own bzero.  These
> 
> What exactly is the problem with X11?

 Looking at the diff. both...

 void *ptr = "abcd";
 char buf[8];

 strcpy(buf, ptr);

...and...

size_t len = 4;
char buf[8];

memset(buf, 0, 1 & 3);

...break the macros.

-- 
# James Antill -- james@and.org
:0:
* ^From: .*james@and\.org
/dev/null


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]