diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-01 16:45:14 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-01 16:45:14 +0000 |
commit | 1e2dfec8f61c985cc9c393a947232cc75e2e6693 (patch) | |
tree | 23df1d0e1c5881c1943ad59f2f3540e1ed14a672 /include | |
parent | efc7a3c37c5bdde1f68295d651cb237d169c03e4 (diff) |
Ensure that we do not exceed the hold's maximum size with a single frame.
(closes issue #12047)
Reported by: fabianoheringer
Tested by: fabianoheringer
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@112125 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/slinfactory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/slinfactory.h b/include/asterisk/slinfactory.h index b81817d6b..a65558bbb 100644 --- a/include/asterisk/slinfactory.h +++ b/include/asterisk/slinfactory.h @@ -31,10 +31,12 @@ extern "C" { #endif +#define AST_SLINFACTORY_MAX_HOLD 1280 + struct ast_slinfactory { AST_LIST_HEAD_NOLOCK(, ast_frame) queue; struct ast_trans_pvt *trans; - short hold[1280]; + short hold[AST_SLINFACTORY_MAX_HOLD]; short *offset; size_t holdlen; /*!< in samples */ unsigned int size; /*!< in samples */ |