Skip to content

Scan-build: Add in CI - #293

Open
mrdeep1 wants to merge 1 commit into
eclipse-tinydtls:mainfrom
mrdeep1:scan-build
Open

mrdeep1 wants to merge 1 commit into
eclipse-tinydtls:mainfrom
mrdeep1:scan-build

Conversation

@mrdeep1

@mrdeep1 mrdeep1 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Fix reported issues.

@mrdeep1
mrdeep1 force-pushed the scan-build branch 2 times, most recently from 69fc28f to 96d914a Compare October 15, 2026 08:27
Comment thread sha2/sha2.c
context->state[7] += h;

/* Clean up */
a = b = c = d = e = f = g = h = T1 = T2 = 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume, that someone wants to remove these values to protect them from "whatever". Why is that removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. PR updated so that these variables (and others) are cleared under normal operation, but not when running scan-build by wrapping the statements with

#ifndef SCAN_BUILD_IGNORE_DEADSTORES
  ...
#endif /* SCAN_BUILD_IGNORE_DEADSTORES */

which is locally defined when running scan-build.

Fix reported issues.

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants