From e057722bf9c7a345fe2672045323276e08ad88b1 Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Fri, 6 Oct 2023 00:45:46 -0400 Subject: [PATCH 1/2] fix: makeFTSIndex crash when indexed articleCount is zero --- src/ftshelpers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftshelpers.cc b/src/ftshelpers.cc index c400fa05..a7dee3d4 100644 --- a/src/ftshelpers.cc +++ b/src/ftshelpers.cc @@ -78,7 +78,7 @@ void makeFTSIndex( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isCancell QVector< uint32_t > offsets; offsets.resize( setOfOffsets.size() ); - uint32_t * ptr = &offsets.front(); + uint32_t * ptr = offsets.data(); for ( QSet< uint32_t >::ConstIterator it = setOfOffsets.constBegin(); it != setOfOffsets.constEnd(); ++it ) { *ptr = *it; From b3b1a532d047054a2e186693da08814adee9c2ed Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 6 Oct 2023 04:54:58 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- src/stylesheets/article-style.css | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/stylesheets/article-style.css b/src/stylesheets/article-style.css index bde27be0..f7852ada 100644 --- a/src/stylesheets/article-style.css +++ b/src/stylesheets/article-style.css @@ -5,18 +5,9 @@ html { } body { - font-family: - -apple-system, - BlinkMacSystemFont, - Tahoma, Verdana, "Lucida Sans Unicode","Palatino Linotype", "Arial Unicode MS", - "Segoe UI", - Roboto, - Oxygen, - Ubuntu, - Cantarell, - "Open Sans", - "Helvetica Neue", - sans-serif; + font-family: -apple-system, BlinkMacSystemFont, Tahoma, Verdana, + "Lucida Sans Unicode", "Palatino Linotype", "Arial Unicode MS", "Segoe UI", + Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; } h1,