[FarGroup/FarManager] master: gh-1078: b6649 crash (eaf370694)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Feb 27, 2026, 7:47:00 PM (21 hours ago) Feb 27
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/eaf370694e64a32a12a8f3460f10965f307875a6

>---------------------------------------------------------------

commit eaf370694e64a32a12a8f3460f10965f307875a6
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Sat Feb 28 00:40:33 2026 +0000

gh-1078: b6649 crash


>---------------------------------------------------------------

eaf370694e64a32a12a8f3460f10965f307875a6
far/changelog | 5 +++++
far/configdb.cpp | 8 ++++----
far/vbuild.m4 | 2 +-
3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/far/changelog b/far/changelog
index 04ccf4750..a2504b5a2 100644
--- a/far/changelog
+++ b/far/changelog
@@ -1,3 +1,8 @@
+--------------------------------------------------------------------------------
+drkns 2026-02-28 00:39:34+00:00 - build 6650
+
+1. gh-1078: b6649 crash.
+
--------------------------------------------------------------------------------
drkns 2026-02-27 00:03:31+00:00 - build 6649

diff --git a/far/configdb.cpp b/far/configdb.cpp
index fca4d2c5b..7c10c2ea7 100644
--- a/far/configdb.cpp
+++ b/far/configdb.cpp
@@ -2401,8 +2401,8 @@ private:
if (e.QueryIntAttribute("leftpos", &leftpos) != tinyxml::XML_SUCCESS)
continue;

- if (auto_statement(&stmtGetEditorPositionId)->Bind(encoding::utf8::get_chars(name)).Step())
- ExecuteStatement(stmtSetEditorBookmark, stmtGetEditorPositionId.GetColInt64(0), num, line, linepos, screenline, leftpos);
+ if (auto_statement const Stmt(&stmtGetEditorPositionId); Stmt->Bind(encoding::utf8::get_chars(name)).Step())
+ ExecuteStatement(stmtSetEditorBookmark, Stmt->GetColInt64(0), num, line, linepos, screenline, leftpos);
}

for (const auto& e: xml_enum(historyRoot.FirstChildElement("viewerpositions"), "position"))
@@ -2440,8 +2440,8 @@ private:
if (e.QueryInt64Attribute("leftpos", &leftpos) != tinyxml::XML_SUCCESS)
continue;

- if (auto_statement(&stmtGetViewerPositionId)->Bind(encoding::utf8::get_chars(name)).Step())
- ExecuteStatement(stmtSetViewerBookmark, stmtGetViewerPositionId.GetColInt64(0), num, filepos, leftpos);
+ if (auto_statement const Stmt(&stmtGetViewerPositionId); Stmt->Bind(encoding::utf8::get_chars(name)).Step())
+ ExecuteStatement(stmtSetViewerBookmark, Stmt->GetColInt64(0), num, filepos, leftpos);
}
}

diff --git a/far/vbuild.m4 b/far/vbuild.m4
index 0deedf4ba..0ac58b3f4 100644
--- a/far/vbuild.m4
+++ b/far/vbuild.m4
@@ -1 +1 @@
-6649
+6650


Reply all
Reply to author
Forward
0 new messages