Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitizer #172

Merged
merged 8 commits into from
Aug 5, 2024
Merged

Sanitizer #172

merged 8 commits into from
Aug 5, 2024

Conversation

appashchenko
Copy link
Contributor

Fix various problems found by sanitizer.

Fixes src/loader.c:303:1: warning: leak of file descriptor ‘pfd[1]’

Signed-off-by: Alexandr Pashchenko <[email protected]>
Fixes src/application.c:383:1 A part of conditional expression is always true: first_image

Signed-off-by: Alexandr Pashchenko <[email protected]>
Fixes src/config.c:117:27: warning: leak of ‘section’

Signed-off-by: Alexandr Pashchenko <[email protected]>
Signed-off-by: Alexandr Pashchenko <[email protected]>
Fixes src/info.c:99:5: warning: use of possibly-NULL ‘ctx.scheme[0][1].fields’ where non-null expected

Signed-off-by: Alexandr Pashchenko <[email protected]>
Fixes src/str.c:65:9: warning: check of ‘text’ for NULL after already dereferencing it

Signed-off-by: Alexandr Pashchenko <[email protected]>
Fixes src/viewer.c:260 'ui_get_width()' was implicitly cast from 'size_t' type to 'double'

Signed-off-by: Alexandr Pashchenko <[email protected]>
src/application.c Show resolved Hide resolved
src/config.c Outdated Show resolved Hide resolved
@artemsen
Copy link
Owner

artemsen commented Aug 4, 2024 via email

Fixes runtime error: left shift of X by Y places cannot be represented in type 'int'

Signed-off-by: Alexandr Pashchenko <[email protected]>
@artemsen artemsen merged commit 200f41a into artemsen:master Aug 5, 2024
5 checks passed
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