diff options
| -rw-r--r-- | html/en/history.html | 5 | ||||
| -rw-r--r-- | src/im_format_jp2.cpp | 3 | 
2 files changed, 6 insertions, 2 deletions
diff --git a/html/en/history.html b/html/en/history.html index c69603d..ed4e2d6 100644 --- a/html/en/history.html +++ b/html/en/history.html @@ -12,7 +12,7 @@  <h2>History of Changes</h2>  <h3 dir="ltr"> -    CVS (16/Feb/2010)</h3> +    CVS (08/Apr/2010)</h3>  <ul dir="ltr">  	<li dir="ltr"><span style="color: #008000"><span style="color: #ff0000">Fixed:</span><span              style="color: #000000"> invalid memory access in <strong> @@ -20,6 +20,9 @@  	<li dir="ltr"><span style="color: #008000"><span style="color: #ff0000">Fixed:</span><span              style="color: #000000"> <strong>imProcessCompose</strong> parameter   	parsing in Lua.</span></span></li> +	<li dir="ltr"><span style="color: #008000"><span style="color: #ff0000">Fixed:</span><span +            style="color: #000000"> invalid memory access when saving an image  +	with the JPEG 2000 format.</span></span></li>  </ul>  <h3 dir="ltr">      <a href="http://sourceforge.net/projects/imtoolkit/files/3.6/">Version 3.6</a> (26/Jan/2010)</h3> diff --git a/src/im_format_jp2.cpp b/src/im_format_jp2.cpp index de25e88..1d30898 100644 --- a/src/im_format_jp2.cpp +++ b/src/im_format_jp2.cpp @@ -3,7 +3,7 @@   *   * See Copyright Notice in im_lib.h   * See libJaper Copyright Notice in jasper.h - * $Id: im_format_jp2.cpp,v 1.2 2008/12/03 15:45:34 scuri Exp $ + * $Id: im_format_jp2.cpp,v 1.3 2010/04/08 13:19:00 scuri Exp $   */  #include "im_format.h" @@ -378,6 +378,7 @@ int imFileFormatJP2::WriteImageInfo()      // Adobe XMP      data = attrib_table->Get("XMLPacket", NULL, &size); +    if (data)      {        jas_metadata_box_t *metabox = &image->metadata.boxes[JAS_IMAGE_BOX_XMP];         jas_box_alloc(metabox, size);  | 
