Results 1 to 2 of 2

Thread: Maya Exporter sprintf buffer overrun

  1. #1

    Maya Exporter sprintf buffer overrun


    DaeUtils.cpp is using sprintf to print to a new char array. This has caused Maya to crash in DAE_AddInput where the source param is larger than 128. It appears that the source data is bad and I believe it gets into this state because the dagPath is longer than 128 characters.

    I think firstly that we need to support dag paths much longer than 128 characters and secondly that we should never use sprintf but rather snprintf and throw a warning rather than have Maya crash.


  2. #2
    Join Date
    Aug 2004
    Feeling Software, Montreal, QC, Canada

    Excellent observation

    Hello Stuart, and thank you for your posting.

    I've just been hired by Alias to improve the quality and reliability of the Maya plug-in. I will make sure that the next public beta of the Maya plug-in eliminates risky sprintf usage.

    Thanks again,

    Christian Laforte
    Maya API and OpenGL consultant
    Christian Laforte
    President, Feeling Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean