Forum Discussion

matthew_jenkins's avatar
matthew_jenkins
New Contributor
9 years ago

Can AQTime detect buffer overrun in C/C++ code?

E.g. strcpy where the destination is too short for the string being copied.

 

Thanks, Matthew

5 Replies

    • matthew_jenkins's avatar
      matthew_jenkins
      New Contributor

      Hi Alex,

       

      Thank you for your suggestion which I tested using code similar to:

       

      char sz1[10];

      char sz2[10];

      sprintf(sz2, "12345678901234");

       

      Unfortunately AQTime didn't detect the overrun. I think the reason can be found in the description of how AQTime implements the "Check Memory Bounds" option: http://support.smartbear.com/viewarticle/43359/

       

      This says: "AQtime does not track allocations done on the stack, therefore you cannot track violations in the stack memory blocks."

       

      It seems AQTime doesn't support what I am looking for.

       

      Thanks, Matthew