Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 395
    • Issues 395
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !191

Refactor str_buffer, add tests for it.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Michiel Verloop requested to merge strbuf-improvements into develop May 03, 2022
  • Overview 34
  • Commits 3
  • Changes 4
  • Add documentation to functions in str_buffer.
  • Add SBUFsubstToken to substitute tokens in the string buffer.
  • Fix the string buffer overflowing when instantiated with a size of 0.
  • Fix SBUFflush not setting a null byte, causing functions like SBUF2str to use the previous contents instead of an empty string.
  • Fix format string encoding errors silently leading to a memory overflow instead of crashing with a useful message.
    • Change CTIerrorInternal to not use PrintMessage to avoid a scenario where errors could potentially occur during error handling.
  • Some debug messages about buffer size now display before attempting to increase it, making debugging easier.
Edited May 03, 2022 by Michiel Verloop
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: strbuf-improvements