Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix false ***buffer overflow*** detection
[src/app-framework-binder.git]
/
src
/
afb-export.c
diff --git
a/src/afb-export.c
b/src/afb-export.c
index
bfd7653
..
62be904
100644
(file)
--- a/
src/afb-export.c
+++ b/
src/afb-export.c
@@
-163,7
+163,7
@@
struct afb_export
} export;
/* initial name */
} export;
/* initial name */
- char name[
1
];
+ char name[];
};
/*****************************************************************************/
};
/*****************************************************************************/
@@
-1271,7
+1271,7
@@
static struct afb_export *create(
return NULL;
}
lenapi = strlen(apiname);
return NULL;
}
lenapi = strlen(apiname);
- export = calloc(1, sizeof *export + lenapi + (path == apiname || !path ? 0 : strlen(path)));
+ export = calloc(1, sizeof *export +
1 +
lenapi + (path == apiname || !path ? 0 : strlen(path)));
if (!export)
errno = ENOMEM;
else {
if (!export)
errno = ENOMEM;
else {