Skip to content

fix process functionals#10

Merged
usermicrodevices merged 6 commits intomainfrom
develop
Jan 29, 2026
Merged

fix process functionals#10
usermicrodevices merged 6 commits intomainfrom
develop

Conversation

@usermicrodevices
Copy link
Owner

No description provided.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Cppcheck (reported by Codacy) found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

uint32_t timeoutMs = nonBlocking ? 100 : receiveTimeoutMs_; // Shorter timeout for non-blocking

while (remaining > 0) {
ssize_t bytes_read = read(fd, ptr, remaining);

Check warning

Code scanning / Flawfinder (reported by Codacy)

Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Warning

Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20).

while (drained < bytesToDrain) {
size_t toRead = std::min(BUFFER_SIZE, bytesToDrain - drained);
ssize_t bytes_read = read(fd, buffer.data(), toRead);

Check warning

Code scanning / Flawfinder (reported by Codacy)

Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Warning

Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20).
@usermicrodevices usermicrodevices merged commit f537d7a into main Jan 29, 2026
15 checks passed
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.

1 participant