diff options
| author | Ted Ross <tross@apache.org> | 2013-07-15 12:41:48 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2013-07-15 12:41:48 +0000 |
| commit | 502887811360345c073eb8b7c3e814e958bf8140 (patch) | |
| tree | e4a25c69da343b1bb14205aa78efba54fd7e8696 /qpid/extras/dispatch/src/parse.c | |
| parent | c9de50719b7d7566cc4f0f2cae39bbcf824420de (diff) | |
| download | qpid-python-502887811360345c073eb8b7c3e814e958bf8140.tar.gz | |
NO-JIRA - Fixed bug in parse-error handling.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1503204 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/extras/dispatch/src/parse.c')
| -rw-r--r-- | qpid/extras/dispatch/src/parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/extras/dispatch/src/parse.c b/qpid/extras/dispatch/src/parse.c index bb1f4ef171..ebf76f63d7 100644 --- a/qpid/extras/dispatch/src/parse.c +++ b/qpid/extras/dispatch/src/parse.c @@ -94,6 +94,9 @@ static char *get_type_info(dx_field_iterator_t *iter, uint8_t *tag, uint32_t *le if ((*tag == DX_AMQP_MAP8 || *tag == DX_AMQP_MAP32) && (*count & 1)) return "Odd Number of Elements in a Map"; + if (*clen > *length) + return "Insufficient Length to Determine Count"; + return 0; } |
