We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dma_ip_drivers/QDMA/linux-kernel/libqdma/qdma_debugfs_queue.c
Lines 629 to 636 in f3828c8
Proposed patch
diff --git a/QDMA/linux-kernel/libqdma/qdma_debugfs_queue.c b/QDMA/linux-kernel/libqdma/qdma_debugfs_queue.c index 62c59ed..b623731 100644 --- a/QDMA/linux-kernel/libqdma/qdma_debugfs_queue.c +++ b/QDMA/linux-kernel/libqdma/qdma_debugfs_queue.c @@ -629,9 +629,16 @@ int qdbg_parse_ctxt_to_buf(u32 *ctxt, len += snprintf(buf + len, buflen - len, "\t%-47s %#-10x %u\n", entries[i].name, v, v); + if (len >= buflen){ + // Not enough memory + return buflen - len; + } } len += snprintf(buf + len, buflen - len, "\n"); - + if (len >= buflen){ + // Not enough memory + return buflen - len; + } return len; }
The text was updated successfully, but these errors were encountered:
check return value of snprintf in qdbg_parse_ctxt_to_buf
393908d
Fixes Xilinx#21
Issue addressed in latest driver release, hance closing it.
Sorry, something went wrong.
No branches or pull requests
dma_ip_drivers/QDMA/linux-kernel/libqdma/qdma_debugfs_queue.c
Lines 629 to 636 in f3828c8
Proposed patch
The text was updated successfully, but these errors were encountered: