You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/07/08 15:25:11 UTC
[trafficserver] 03/03: Assert on valid boundaries for UserArgTable
access (#6953)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 3385e2787d8e27d893a8255c3003df50bad78356
Author: Sudheer Vinukonda <su...@apache.org>
AuthorDate: Mon Jun 29 16:36:39 2020 -0700
Assert on valid boundaries for UserArgTable access (#6953)
Note the index is size_t (unsigned) so it is always
> 0
(cherry picked from commit 524d2e4c2434ff6a22a6b5d3b100367b662d175a)
---
include/tscore/PluginUserArgs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/tscore/PluginUserArgs.h b/include/tscore/PluginUserArgs.h
index 8a6a314..057e37c 100644
--- a/include/tscore/PluginUserArgs.h
+++ b/include/tscore/PluginUserArgs.h
@@ -53,14 +53,14 @@ public:
void *
get_user_arg(size_t ix) const
{
- ink_assert(ix < user_args.size());
+ ink_release_assert(ix < user_args.size());
return this->user_args[ix];
};
void
set_user_arg(size_t ix, void *arg)
{
- ink_assert(ix < user_args.size());
+ ink_release_assert(ix < user_args.size());
user_args[ix] = arg;
};