Repository navigation
Bug fixes on procbuf - #399
Open
Dhruv Menon (malto101) wants to merge 2 commits into
Open
Dhruv Menon (malto101) wants to merge 2 commits into
Dhruv Menon (malto101) wants to merge 2 commits into
Conversation
|
qualcomm/fastrpc.triage This pull request has been marked as stale due to 30 days of inactivity. |
Contributor
Author
Vinayak Katoch (quic-vkatoch)
suggested changes
Oct 21, 2026
Dhruv Menon (malto101)
added a commit
to malto101/fastrpc
that referenced
this pull request
Oct 28, 2026
Run all externally testable PR qualcomm#399 diagnostics in isolated child processes with per-case watchdogs and consolidated reports. Co-Authored-By: Claude Code <[email protected]> Signed-off-by: Dhruv Menon <[email protected]>
Dhruv Menon (malto101)
force-pushed
the
bug-fix
branch
from
October 29, 2026 09:18
3c7b6db to
6eb61a2
Compare
Contributor
|
Could you also update the commit messages as per changes? |
Dhruv Menon (malto101)
force-pushed
the
bug-fix
branch
from
November 6, 2026 18:16
6eb61a2 to
cb343ea
Compare
Contributor
Author
updated it! |
Dhruv Menon (malto101)
requested review from
Ekansh Gupta (ekanshibu) and
Vinayak Katoch (quic-vkatoch)
November 6, 2026 18:17
Dhruv Menon (malto101)
force-pushed
the
bug-fix
branch
from
November 20, 2026 10:18
cb343ea to
2d05f33
Compare
Dhruv Menon (malto101)
requested a review
from Vinayak Katoch (quic-vkatoch)
November 20, 2026 10:22
Contributor
there are only 2 fixes in this PR |
Vinayak Katoch (quic-vkatoch)
approved these changes
Nov 20, 2026
The old check used a word offset as a byte limit, allowing an oversized range. Signed-off-by: Dhruv Menon <[email protected]>
fastrpc_process_pack_params() allocated lib_names with malloc(), leaving it uninitialized. get_non_preload_lib_names() only writes to it via strlcat() inside a conditional branch reached per matching file found under DSP_LIBRARY_PATH; if no files match, the buffer is never written, and the function's unconditional `strlen(*lib_names)` then reads past the uninitialized (and possibly unterminated) allocation. Reproduced by libFuzzer+ASan: DSP_LIBRARY_PATH set to a directory with no matching .so files triggers a heap-buffer-overflow read on the 2048-byte MAX_NON_PRELOAD_LIBS_LEN allocation. Switch to calloc() so the buffer is always NUL-terminated even when strlcat() is never called. Signed-off-by: Dhruv Menon <[email protected]>
Dhruv Menon (malto101)
force-pushed
the
bug-fix
branch
from
November 20, 2026 11:42
2d05f33 to
1dc36a6
Compare
Vinayak Katoch (quic-vkatoch)
approved these changes
Nov 20, 2026
Ekansh Gupta (ekanshibu)
approved these changes
Nov 23, 2026
Contributor
🤖 FastRPC AI Code Review — ✅ No issues found · patch
|
Contributor
|
Pre-merge CI results — patch Validated On
Kernel: Test Matrix
LAVA Jobs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes 2 independently reachable bugs in FastRPC
The issues were noticed when ASan and UBSan were enabled
bug 1: #396
The bounds calculation now uses byte-accurate arithmetic, ensuring writes that would exceed the actual allocation are rejected with AEE_ERPC before reaching memcpy()
bug 2: #397
allocation has been changed to calloc ensuring the buffer is always NUL-terminated and safe to inspect even when no libraries are discovered