Skip to content

Help finding ultimate source of a stack location.... #18388

Answered by smowton
henrygab asked this question in Q&A
Discussion options

You must be logged in to vote

How about this, which uses a path-problem query, a global dataflow configuration and the , true qualifier that limits stackPointerFlowsToUse to highlighting local problems:

/**
 * @name TinyUSB - local variable address passed as buffer for endpoint transfer
 * @description Passing the address of a local variable (stack address) as the
 *              `buffer` for these functions can cause stack corruption when the
 *              transfer is not completed before the stack location is re-used.
 *              Typically, this requires waiting on an ISR to fire, as the transfer
 *              may be handled asynchronously by hardware to that buffer.
 * @kind path-problem
 * @problem.severit…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@henrygab
Comment options

@smowton
Comment options

@henrygab
Comment options

@smowton
Comment options

Answer selected by henrygab
@henrygab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants