[Webkit-unassigned] [Bug 50245] Add word-prefix search options to the text search without ICU

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 22 07:54:29 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=50245





--- Comment #8 from yi shen <yi.4.shen at nokia.com>  2011-06-22 07:54:29 PST ---
(In reply to comment #7)
> (In reply to comment #5)
> > I agree that memmove is a better way, but I think memcpy is fine in this case since the source is after the destination,right?
> > 
> > e.g,
> > str = "0123456789"
> > memcpy(str+2, str+1, 3);
> > returns: 0111356789
> > 
> > memcpy(str+1, str+2, 3);
> > returns: 0234456789
> 
> This is invalid, and will fail on some platform, some libc or even depending on the alignment.
> The source and destination of memcpy cannot overlap (see http://linuxcertif.com/man/3/memcpy/en/ ).

Agree, will fix it :)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list