projects
/
platform
/
upstream
/
libexif.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b15bf99
)
Reduce the recursion limit
author
Dan Fandrich
<dan@coneharvesters.com>
Thu, 22 Jan 2009 07:27:57 +0000
(23:27 -0800)
committer
Dan Fandrich
<dan@coneharvesters.com>
Thu, 22 Jan 2009 07:27:57 +0000
(23:27 -0800)
libexif/exif-data.c
patch
|
blob
|
history
diff --git
a/libexif/exif-data.c
b/libexif/exif-data.c
index
80df646
..
e267f34
100644
(file)
--- a/
libexif/exif-data.c
+++ b/
libexif/exif-data.c
@@
-346,7
+346,7
@@
if (data->ifd[(i)]->count) { \
/*! Load data for an IFD.
*
/*! Load data for an IFD.
*
- * \param[in
/
out] data #ExifData
+ * \param[in
,
out] data #ExifData
* \param[in] ifd IFD to load
* \param[in] d pointer to buffer containing raw IFD data
* \param[in] ds size of raw data in buffer at \c d
* \param[in] ifd IFD to load
* \param[in] d pointer to buffer containing raw IFD data
* \param[in] ds size of raw data in buffer at \c d
@@
-372,7
+372,7
@@
exif_data_load_data_content (ExifData *data, ExifIfd ifd,
if (( ((int)ifd) < 0) || ( ((int)ifd) >= EXIF_IFD_COUNT))
return;
if (( ((int)ifd) < 0) || ( ((int)ifd) >= EXIF_IFD_COUNT))
return;
- if (recursion_depth >
15
0) {
+ if (recursion_depth >
3
0) {
exif_log (data->priv->log, EXIF_LOG_CODE_CORRUPT_DATA, "ExifData",
"Deep recursion detected!");
return;
exif_log (data->priv->log, EXIF_LOG_CODE_CORRUPT_DATA, "ExifData",
"Deep recursion detected!");
return;
@@
-513,7
+513,7
@@
exif_data_save_data_content (ExifData *data, ExifContent *ifd,
if (ifd == data->ifd[i])
break;
if (i == EXIF_IFD_COUNT)
if (ifd == data->ifd[i])
break;
if (i == EXIF_IFD_COUNT)
- return;
+ return;
/* error */
/*
* Check if we need some extra entries for pointers or the thumbnail.
/*
* Check if we need some extra entries for pointers or the thumbnail.