Menu

#65 id3lib-3.8.3: RenderV2ToFile() mkstemp() bugfix

open
nobody
None
8
2004-09-13
2004-09-13
No

This patch fixes a bug, described as a half of bug
#746410 (tag overwriting parts of mp3 blocks).
The bug had an incorrect sequence of stream closings.
The C++ 'tmpOut' stream is a successor of the C 'fd'
stream.
But in 'id3lib-3.8.3' one fclose(fd) is added before
the ofstream::close(tmpOut), wherefore the last data
chunk remains in 'tmpOut' 's C++ buffer. It is unable
to write that data to file, because the C file handler
is allready closed.
As a result everytime any last part of the audio file
has eated.
This patch transposes stream closings in their proper
order.
This bug should not be represented in gcc3.x and
Windows cases, and maybe also in earlyer versions of
'id3lib'.

Discussion

  • Vladimir Petrov

    Vladimir Petrov - 2004-09-13
    • priority: 5 --> 8
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.