! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Static analysis fixes
Status:
RESOLVED: MOVED

Comments

Description Steven Jackson 2013-11-08 15:50:34 CET
Created attachment 5227 
patch

I ran cppcheck on xfwm4 (git master) before I look start looking at specific bugs. Some minor problems were reported, see the attachment

hints.c:
	possible NULL dereference
	assignment to pointer value rather than pointer
xfwm4-settings.c:
	possible small memory leak
Comment 1 Mario Rugiero 2014-01-21 09:32:26 CET
Hi, I was about to post a similar patch. There is a detail missing in yours:
in the one in getUTF8String, there is an ineffective assignment to the str_p argument. I think it was, as you noticed that happened with length, intended to assign to the value pointed by str_p, as that is the one being freed.
Comment 2 Steven Jackson 2014-01-21 10:11:59 CET
Hi Mario, you are right, I should have spotted that. Would you like to post a patch or should I update mine?
Comment 3 Mario Rugiero 2014-01-21 10:17:55 CET
(In reply to Steven Jackson from comment #2)
> Hi Mario, you are right, I should have spotted that. Would you like to post
> a patch or should I update mine?

I think it would be better if you update yours, as mine already lacks the corrections in xfwm_settings_theme_sort_func.
Comment 4 Git Bot editbugs 2020-05-29 11:57:52 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/135.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #10476

Reported by:
Steven Jackson
Reported on: 2013-11-08
Last modified on: 2020-05-29

People

Assignee:
Olivier Fourdan
CC List:
2 users

Version

Version:
unspecified

Attachments

patch (1.84 KB, patch)
2013-11-08 15:50 CET , Steven Jackson
no flags

Additional information