This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Feature requests · Rockbox frontpage
FS#8795 - Fault of the escape processing in Changelog
Attached to Project:
Rockbox
Opened by Kenjiro Arai (MoonWolf) - Tuesday, 25 March 2008, 02:24 GMT+2
Last edited by Miika Pekkarinen (miipekk) - Sunday, 20 April 2008, 01:48 GMT+2
Opened by Kenjiro Arai (MoonWolf) - Tuesday, 25 March 2008, 02:24 GMT+2
Last edited by Miika Pekkarinen (miipekk) - Sunday, 20 April 2008, 01:48 GMT+2
|
DetailsIt is tagcache.c that there is a problem.
A problem is in import/export of the tag containing double-quote or a backslash. It is reproducible. When the worst, a database is broken and the whole Rockbox becomes unstable. double-quote should be escaped by backslash +double-quote in a write_tag function. Moreover, a thing when a backslash comes to the end of a tag is considered, and a backslash should also be escaped. un-escape processing of read_tag was also modified according to it. The above correction improves compatibility with the tool of a third party. |
This task depends upon
Closed by Miika Pekkarinen (miipekk)
Sunday, 20 April 2008, 01:48 GMT+2
Reason for closing: Accepted
Sunday, 20 April 2008, 01:48 GMT+2
Reason for closing: Accepted
The actual situation and the way of reading and writing of 'Database' are not document-ized.
database_changelog.txt is its only hope.