Use memmove in QListData::append(int) as regions overlap.
authorThiago Macieira <thiago@kde.org>
Fri, 8 Jul 2011 08:42:49 +0000 (10:42 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Fri, 8 Jul 2011 12:10:16 +0000 (14:10 +0200)
commit9eb176928280acaabcee99d52c2379ddd3a44490
tree61eda02fda1c3762186778160b1e785fc3d6c4f2
parent999047177846695a809aa1a730330ce676d85959
Use memmove in QListData::append(int) as regions overlap.

It's undefined behaviour to memcpy regions with overlapping area. You
have to use memmove.

Change-Id: I912c819bf7ab26ba1e60028ee9d7c833dfc5138a
Reviewed-on: http://codereview.qt.nokia.com/1355
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
(cherry picked from commit d96b7b809e614dd416709acec768529457120b9f)
src/corelib/tools/qlist.cpp