Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  questions about metadata read
« previous next »
  • Print
Pages: [1]

Author Topic: questions about metadata read  (Read 1003 times)

Offline powerpan

  • Member
  • *
  • Posts: 52
questions about metadata read
« on: April 24, 2011, 06:19:18 AM »
in metadata.h,  mp3entry defines as below

struct mp3entry {
    char path[MAX_PATH];
    char* title;
    char* artist;
    char* album;
    char* genre_string;
    char* disc_string;
    char* track_string;
    char* year_string;
    char* composer;
    char* comment;
    char* albumartist;
    char* grouping;
....
}

while calling get_metadata to get id3, it clears the id3 structure, so, when I use the get_metadata as a standalone application to read id3 tags, *** stack smashing detected *** will show up. I think this is something like not standard programming.

anybody could explain where is the real string stores?





Post Merge: April 24, 2011, 06:26:35 AM
got some clues now,

char id3v2buf[ID3V2_BUF_SIZE];

should be the real buffer, errors shows up because default SDL make did not define MEMORYSIZE so the buffer is kinda small.
« Last Edit: April 24, 2011, 06:26:35 AM by powerpan »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  questions about metadata read
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.047 seconds with 16 queries.