Results 1 to 2 of 2

Thread: Maya Exporter sprintf buffer overrun

  1. #1

    Maya Exporter sprintf buffer overrun

    Hey,

    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.

    Stuart

  2. #2
    Member
    Join Date
    Aug 2004
    Location
    Feeling Software, Montreal, QC, Canada
    Posts
    36

    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
    www.feelingsoftware.com
    Christian Laforte
    President, Feeling Software
    http://www.feelingsoftware.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •