Skip to content

fix sonar findings - #1

Merged
WXbet merged 2 commits into
mainfrom
sonar-fixes
Oct 2, 2026
Merged

WXbet merged 2 commits into
mainfrom
sonar-fixes

Conversation

@WXbet

@WXbet WXbet commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Streams that a failed flush or fsync left open are closed now, in the
completion marker, the metadata, fstab, the interfaces file and the
atomic writes of Chkroot. A stat before a rename, access checks before
opens and usleep are gone, the package plan and the ipk name parsing check
their bounds.

The long functions are split into steps without changing what they do:
the USB setup of FlashExpander and Chkroot, the image installation, the
opkg run with its skip and retry loop, running a command and the flow of
the wizard. The argv of the tools are built from writable buffers instead
of casting away const.

Paths from sysfs, /proc, the configuration and the device the user chose
are marked NOSONAR with the reason, like in the Open Recovery Manager.

Comment thread src/storage.c Fixed
@WXbet WXbet changed the title Fix the SonarQube findings fix sonar findings Oct 2, 2026
Comment thread src/storage.c Fixed
Streams that a failed flush or fsync left open are closed now, in the
completion marker, the metadata, fstab, the interfaces file and the
atomic writes of Chkroot. A stat before a rename, access checks before
opens and usleep are gone, the package plan and the ipk name parsing check
their bounds.

The long functions are split into steps without changing what they do:
the USB setup of FlashExpander and Chkroot, the image installation, the
opkg run with its skip and retry loop, running a command and the flow of
the wizard. The argv of the tools are built from writable buffers instead
of casting away const.

Paths from sysfs, /proc, the configuration and the device the user chose
are marked NOSONAR with the reason, like in the Open Recovery Manager.
Like the Open Recovery Manager, agreed with atvcaptain. About and the
README name it, LVGL, DejaVu Sans and Font Awesome keep their licenses.
The generated license texts are left out of the SonarQube analysis like
the fonts.
@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026

Copy link
Copy Markdown

@WXbet
WXbet merged commit 0907b14 into main Oct 2, 2026
3 checks passed
@WXbet
WXbet deleted the sonar-fixes branch October 2, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants