<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/libiptcdata/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/libiptcdata/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 22 Dec 2016 17:13:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libiptcdata/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>iptc-data.c:607: poor error checking ?</title><link>https://sourceforge.net/p/libiptcdata/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;span&gt;[iptc-data.c:607]&lt;/span&gt;: (style) Checking if unsigned variable 'i' is less than zero.&lt;/p&gt;
&lt;p&gt;Source code is&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;i = iptc_data_dataset_index (data, dataset);
if (i &amp;lt; 0) return -1;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;but&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;unsigned int i;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Suggest put return value from function into local variable&lt;br/&gt;
of type int, then sanity check it &amp;gt;= 0, then write it into &lt;br/&gt;
local variable i.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[pyiptcdata.c:172]&lt;/span&gt;: (style) Checking if unsigned variable 'old_ps3_len' is less than zero.&lt;/p&gt;
&lt;p&gt;Probable duplicate.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dcb</dc:creator><pubDate>Thu, 22 Dec 2016 17:13:38 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netc8ca8a99c40166faa1f2fa69f46968d8aebd9bfc</guid></item><item><title>Compiling error on Windows (MSYS+MinGW</title><link>https://sourceforge.net/p/libiptcdata/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When compiling libiptcdata on Windows, using MSYS+MinGW, I get 2 undefined references because of link() and chown() in main.c (respectively lines 835 and 850)&lt;/p&gt;
&lt;p&gt;Instead of link(), we can use CreateHardLink() which is more or less the same thing, with 2 limitations : it works only with Windows 2000 or above, and only with NTFS. Instead of&lt;/p&gt;
&lt;p&gt;if (link (filename, bakfile) &amp;lt; 0)&lt;/p&gt;
&lt;p&gt;we can do&lt;/p&gt;
&lt;p&gt;if (CreateHardLink(bakfile, filename, NULL))&lt;/p&gt;
&lt;p&gt;guarded by _WIN32, or alternatively:&lt;/p&gt;
&lt;p&gt;#ifdef _WIN32&lt;br /&gt;
static int link(const char *oldpath, const char *newpath)&lt;br /&gt;
{&lt;br /&gt;
if (CreateHardLink(newpath, oldpath, NULL))&lt;br /&gt;
return -1;&lt;br /&gt;
else&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
#endif&lt;/p&gt;
&lt;p&gt;so that the code is  not modified, and windows.h should be included like that:&lt;/p&gt;
&lt;p&gt;#ifdef _WIN32&lt;br /&gt;
#define _WIN32_WINNT 0x0500&lt;br /&gt;
#define WIN32_LEAN_AND_MEAN&lt;br /&gt;
#include &amp;lt;windows.h&amp;gt;&lt;br /&gt;
#undef WIN32_LEAN_AND_MEAN&lt;br /&gt;
#endif&lt;/p&gt;
&lt;p&gt;about chown, maybe the following link can be of some help :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://wwwthep.physik.uni-mainz.de/~frink/chown/readme.html#concept" rel="nofollow"&gt;http://wwwthep.physik.uni-mainz.de/~frink/chown/readme.html#concept&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vincent TORRI</dc:creator><pubDate>Thu, 18 Feb 2010 05:45:51 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net09142be5366343778b3b67370a1f111a6e6f62bf</guid></item><item><title>IptcLog memory leak - solution included</title><link>https://sourceforge.net/p/libiptcdata/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The following sequence of code leaks memory:&lt;/p&gt;
&lt;p&gt;IptcLog* iptcLog = iptc_log_new();&lt;br /&gt;
iptc_log_free( iptcLog );&lt;/p&gt;
&lt;p&gt;The problem is that iptc_log_free() does not release log-&amp;gt;mem - only the IptcLog itself.  This can be resolved by changing iptc_log_free() to:&lt;/p&gt;
&lt;p&gt;void&lt;br /&gt;
iptc_log_free (IptcLog *log)&lt;br /&gt;
{&lt;br /&gt;
if (!log) return;&lt;br /&gt;
{&lt;br /&gt;
IptcMem *mem = log-&amp;gt;mem;&lt;br /&gt;
iptc_mem_free (log-&amp;gt;mem, log);&lt;br /&gt;
iptc_mem_unref (mem);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin</dc:creator><pubDate>Sat, 08 Aug 2009 21:02:38 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netaf8982299aadea4cbb3b1b6a918198eca2063e44</guid></item><item><title>Italian translation missing</title><link>https://sourceforge.net/p/libiptcdata/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The Italian translation for libiptcdata is missing. I'm attaching the Italian translations made by the Italian Ubuntu translation team.&lt;/p&gt;
&lt;p&gt;A note:&lt;br /&gt;
I noticed that the strings from the iptc/ directory are missing in the pot file inside the po/ directory where there are only the one from libiptcdata/.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Milo</dc:creator><pubDate>Sun, 07 Jun 2009 12:55:22 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netb24c37daa34b4e3ac69cddb8d2e8e79215023d5b</guid></item><item><title>dataset segfault in Python for unknown tags</title><link>https://sourceforge.net/p/libiptcdata/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Python binding use of latest stable release appears to segfault on retrieval of dataset title attribute for an unknown tag in a JPEG.  The tag in question, 221 (Photo Mechanic produced the image) seems to be at fault.  Removing this tag (via reassembling the IPTC data block and all segments back into a new JPEG) removes the segfault.  Python bindings currently appear to have trouble with a NULL tag info returned by iptc_tag_get_info(); the library should robustly substitute a default or generated title when none exists.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sean D. Upton</dc:creator><pubDate>Thu, 21 Aug 2008 17:15:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netcf0bd0aed46a5f3ee935b86ab4dfa9b8ab033798</guid></item><item><title>Python .save() fails if photo not on same filesystem as /tmp</title><link>https://sourceforge.net/p/libiptcdata/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Tested on Linux with libiptcdata-1.0.2. Data object.save() fails with:&lt;/p&gt;
&lt;p&gt;IOError: [Errno 18] Invalid cross-device link: 'photo.jpg'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Mayo</dc:creator><pubDate>Sat, 18 Aug 2007 18:34:28 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net8bcde6eefc6f624990fa805d0009bb4e2a26afc7</guid></item><item><title>iptc_data_new_from_jpeg not working</title><link>https://sourceforge.net/p/libiptcdata/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;iptc_data_new_from_jpeg is not working, because it&lt;br /&gt;
don't open correctly the file. The fopen must use "rb"&lt;br /&gt;
and not "r".&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 28 Sep 2006 19:11:55 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net260c568591497d77d93fb28c8e160dd9dcea655a</guid></item></channel></rss>