Skip to content

Fix NULL-pointer dereference in zssStorage POST handler - #136

Merged
1000TurquoisePogs merged 1 commit into
v3.x/stagingfrom
fix/zssstorage-null-contentbody
Sep 4, 2026
Merged

Fix NULL-pointer dereference in zssStorage POST handler#136
1000TurquoisePogs merged 1 commit into
v3.x/stagingfrom
fix/zssstorage-null-contentbody

Conversation

@js665999

@js665999 js665999 commented Sep 3, 2026

Copy link
Copy Markdown

When a client issues a POST to the zssStorage dataservice with no entity body (no Content-Length / Content-Length: 0), ZSS leaves contentBody as NULL, so strlen(NULL) crashes the service subtask with an S0C4.

Fix: getValue() now returns NULL immediately if contentBody is NULL, instead of dereferencing it.

Signed-off-by: js665999 <js665999@broadcom.com>
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

1000TurquoisePogs added a commit that referenced this pull request Sep 4, 2026
[V2] Fix NULL-pointer dereference in zssStorage POST handler- #136
@github-project-automation github-project-automation Bot moved this from Ready for Review to Merge Ready in WebUI planning board Sep 4, 2026
@1000TurquoisePogs
1000TurquoisePogs merged commit ab4ec97 into v3.x/staging Sep 4, 2026
7 of 8 checks passed
@github-project-automation github-project-automation Bot moved this from Merge Ready to Closed in WebUI planning board Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants