#12 Segfault, and I know the exact bug place

closed-fixed
None
5
2009-06-22
2009-06-21
Anonymous
No

Hey,

in metadata.c, near line 370:

ed = exif_loader_get_data(l);
exif_loader_unref(l);

tag = EXIF_TAG_PIXEL_X_DIMENSION;
e = exif_content_get_entry(ed->ifd[EXIF_IFD_EXIF], tag);

you don't check if

exif_loader_get_data()

returned NULL or not. For me, it returns NULL, and then you immediately dereference it (ed->ifd[EXIF_IFD_EXIF]) so it segfaults.

Discussion

  • Justin Maggard

    Justin Maggard - 2009-06-22

    Thanks for the info. It's now fixed in CVS.

     
  • Justin Maggard

    Justin Maggard - 2009-06-22
    • assigned_to: nobody --> jmaggard
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks