summaryrefslogtreecommitdiffstats
path: root/include/framework/DynamicExtension.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-11-06 12:33:18 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2023-11-06 12:33:18 -0500
commitfe136eda414d3f7897d4610faeda8dbb3b7bb400 (patch)
treed41e393fec4193fa69855b084e5b3c95c683459f /include/framework/DynamicExtension.h
parent7249af78a3f39bd2852c3f81fe92dc5b647161fb (diff)
downloaddynamic-extension-fe136eda414d3f7897d4610faeda8dbb3b7bb400.tar.gz
DynamicExtension::create_static_structure: fixed heap overflow
Diffstat (limited to 'include/framework/DynamicExtension.h')
-rw-r--r--include/framework/DynamicExtension.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h
index 49c6905..76722c0 100644
--- a/include/framework/DynamicExtension.h
+++ b/include/framework/DynamicExtension.h
@@ -169,7 +169,7 @@ public:
// FIXME: With an interface adjustment, this could be done in
// one call, rather than a loop.
- for (size_t i=bv.size() - 1; i>=0; i--) {
+ for (ssize_t i=bv.size() - 1; i>=0; i--) {
shards.emplace_back(new S(bv.get_buffers()[i]));
}