Skip to content
Snippets Groups Projects

Potential segmentation fault fixed

Merged Felix Gerking requested to merge potential_sementation_fault_fix into dunfell

If I see it right there could be a segmentation fault if used in echo mode. When you choose echo mode the variable message wouldn't be initialised with a value and in the cleanup function the not allocated memory would be free'ed. This could lead to a segmentation fault in my eyes.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Not sure if this is strictly necessary with the todays gcc and it's default settings but it surely won't hurt to initialize the pointer to NULL.

    By Clemens Terasa on 2021-05-19T06:35:03 (imported from GitLab)

Please register or sign in to reply
Loading