syang-ng opened a new pull request #8930:
URL: https://github.com/apache/tvm/pull/8930


   This is related to an issue 
[here](https://discuss.tvm.apache.org/t/crash-triggered-by-8-lines-of-tir-code/10808/5).
 
   
   In a word, function `PrimExpr VisitExpr_(const LoadNode* op)` forgets to 
check the size of the vector `scope_[op->buffer_var.get()]`, while calling 
std::vector::back on an empty container will cause undefined behavior. 
   
   This PR fixed this problem by adding the vector size check before calling 
`back()`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to