From 462131fc78d0f425a9facd5eedcb54067eced7ce Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Tue, 15 Oct 2024 14:09:50 +0000 Subject: [PATCH 1/2] fix:[#396] increase buffer length for exported bin --- core/subSystem.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/subSystem.go b/core/subSystem.go index 46657538..c07329db 100644 --- a/core/subSystem.go +++ b/core/subSystem.go @@ -84,6 +84,9 @@ func findExportedBinaries(internalName string) map[string]map[string]string { defer file.Close() scanner := bufio.NewScanner(file) + const maxTokenSize = 1024 * 1024 + buf := make([]byte, maxTokenSize) + scanner.Buffer(buf, maxTokenSize) for scanner.Scan() { if scanner.Text() == "# distrobox_binary" { scanner.Scan() From c5743bb2dd4d2f1f1f15aa7e265ea1bba36386a3 Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Tue, 15 Oct 2024 17:12:44 +0000 Subject: [PATCH 2/2] fix: remove unused sonar-project.properties file --- sonar-project.properties | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index d355dfc8..00000000 --- a/sonar-project.properties +++ /dev/null @@ -1,9 +0,0 @@ -sonar.projectKey=Vanilla-OS_apx_AYiLLt9U9CPJrZw6oxBN -sonar.projectName=apx - -sonar.sources=. -sonar.exclusions=**/*_test.go - -sonar.c.file.suffixes=- -sonar.cpp.file.suffixes=- -sonar.objc.file.suffixes=-