[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
Fri Jun 17 15:31:54 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=50245
--- Comment #7 from Benjamin Poulain <benjamin at webkit.org> 2011-06-17 15:31:54 PST ---
(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/ ).
--
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