[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Thu Nov 2 20:22:16 UTC 2017
sw/source/filter/ww8/ww8scan.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 91dcc2de555d14a7d2c996ee4641aa4acd77bec8
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Nov 2 12:54:58 2017 +0000
ofz#3927 ensure same sort order cross platforms
annoyingly was getting different order on oss-fuzz vs normal case
making things hard to reproduce
Change-Id: Ie50a546946b2dfa89bc3af1b4a04a88217c1a668
Reviewed-on: https://gerrit.libreoffice.org/44212
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 3134c3bc2ed1..623100c4f61a 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -2701,7 +2701,7 @@ WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp(const WW8Fib& rFib, SvStream* pSt,
maEntries.emplace_back(Get_Long(pStart));
//we expect them sorted, but it appears possible for them to arrive unsorted
- std::sort(maEntries.begin(), maEntries.end());
+ std::stable_sort(maEntries.begin(), maEntries.end());
mnIdx = 0;
More information about the Libreoffice-commits
mailing list