Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L
libvmod-blobcode
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 1
    • Issues 1
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • uplex-varnish
  • libvmod-blobcode
  • Issues
  • #3

Closed
Open
Opened May 09, 2017 by Geoff Simmons@geoff
  • Report abuse
  • New issue
Report abuse New issue

blob object constructor should use the static null_blob when blob length = 0

Currently the blob constructor creates a BLOB whose priv pointer is NULL when the encoding is the empty string:

new empty = blobcode.blob(encoded="");

An empty BLOB is a legitimate object, but priv==NULL does not play well with other VMODs expecting a BLOB.

The static null_blob, whose priv pointer points to the static constant empty string, was created for this purpose, and is returned by the decode function when the encoding is the empty string. The constructor should use it as well.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: uplex-varnish/libvmod-blobcode#3