projects
/
platform
/
upstream
/
libsoup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d42162e
)
[SVACE][TIZEN_3.0_TV][Critical][WGID 41378] PROC_USE.VULNERABLE
72/61372/1
accepted/tizen/common/20160308.142346
accepted/tizen/ivi/20160308.022747
accepted/tizen/mobile/20160308.022557
accepted/tizen/tv/20160308.022633
accepted/tizen/wearable/20160308.022712
submit/tizen/20160307.113634
author
Seonah Moon
<seonah1.moon@samsung.com>
Mon, 7 Mar 2016 11:06:32 +0000
(20:06 +0900)
committer
Seonah Moon
<seonah1.moon@samsung.com>
Mon, 7 Mar 2016 11:06:44 +0000
(20:06 +0900)
Change-Id: I2ae498015b91794d3900625b7165971e4815a07b
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
libsoup/soup-cache.c
patch
|
blob
|
history
diff --git
a/libsoup/soup-cache.c
b/libsoup/soup-cache.c
index
3d03375
..
bd09b16
100755
(executable)
--- a/
libsoup/soup-cache.c
+++ b/
libsoup/soup-cache.c
@@
-1451,7
+1451,11
@@
soup_cache_foreach_regular_file (SoupCache *cache, SoupCacheForeachFileFunc func
dir = opendir(priv->cache_dir);
if (dir) {
struct dirent *dp;
- while ((dp = readdir(dir)) != NULL) {
+ struct dirent dent_buf;
+ while (!readdir_r(dir, &dent_buf, &dp) && dp) {
+ if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
+ continue;
+
name = dp->d_name;
if (g_str_has_prefix (name, "soup."))
continue;