festvox / flite

A small fast portable speech synthesis system
Other
869 stars 188 forks source link

[BUG] A double free bug in src/audio/audio.c #93

Open ShangzhiXu opened 1 year ago

ShangzhiXu commented 1 year ago

In audio.c, line 114, we will call abuf = nbuf; and then in line 186-188

        cst_free(nbuf);
        if (abuf != buff)
        cst_free(abuf);

now that abuf = nbuf, so abuf != buff is true. it will lead to a double free bug here

adr-adr commented 9 months ago

nbuf has been assigned to a new allocated memory chunk. Please close this issue.