projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81c2d7b
)
When checking for an encoded character, make sure the string isn't blank, first.
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Fri, 12 Sep 2008 16:54:44 +0000
(16:54 +0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Fri, 12 Sep 2008 16:54:44 +0000
(16:54 +0000)
(Closes issue #13470)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@142748
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/app.c
patch
|
blob
|
history
diff --git
a/main/app.c
b/main/app.c
index
82aab2f
..
b7429bf
100644
(file)
--- a/
main/app.c
+++ b/
main/app.c
@@
-1748,6
+1748,11
@@
int ast_get_encoded_char(const char *stream, char *result, size_t *consumed)
int i;
*consumed = 1;
*result = 0;
+ if (ast_strlen_zero(stream)) {
+ *consumed = 0;
+ return -1;
+ }
+
if (*stream == '\\') {
*consumed = 2;
switch (*(stream + 1)) {