Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jp2_read_boxhdr() has size bug in version 1 #92

Closed
gcode-importer opened this issue Sep 18, 2011 · 3 comments
Closed

jp2_read_boxhdr() has size bug in version 1 #92

gcode-importer opened this issue Sep 18, 2011 · 3 comments
Assignees

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 92

static opj_bool jp2_read_boxhdr(opj_common_ptr cinfo,
   opj_cio_t *cio,  opj_jp2_box_t *box)
{
   box->init_pos = cio_tell(cio);
   box->length = cio_read(cio, 4);            <== 4
   box->type = cio_read(cio, 4);              <== 8

   if (box->length == 1)
  {
   if (cio_read(cio, 4) != 0)                 <== 12
 {
   opj_event_msg(cinfo, EVT_ERROR,
     "Cannot handle box sizes higher than 2^32\n");
   return OPJ_FALSE;
 }
   box->length = cio_read(cio, 4);            <== 16

   if (box->length == 0)
    box->length = cio_numbytesleft(cio) + 12; <== BUG
  }
   else
   if (box->length == 0)
  {
   box->length = cio_numbytesleft(cio) + 8;
  }

   return OPJ_TRUE;
}


winfried

Reported by szukw000 on 2011-09-18 06:51:49

@gcode-importer
Copy link
Author

Do we have a sample dataset to reproduce this issue ?

Reported by malaterre on 2012-01-11 09:19:50

@gcode-importer
Copy link
Author

Reported by malaterre on 2014-02-25 15:27:02

  • Labels added: Priority-Low
  • Labels removed: Priority-Medium

@gcode-importer
Copy link
Author

no new input in years, closing issue.

Reported by malaterre on 2014-02-26 14:10:08

  • Status changed: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants