summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-11-06 12:33:18 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2023-11-07 13:42:15 -0500
commitd703f2d74c2dfa6fdb367e9d7e309028005a907d (patch)
tree058a7fab7347321b7e11fd8519b6fb627f9461aa /include
parent9e1c1b1b930031896851b1ed4a15152508327d73 (diff)
downloaddynamic-extension-d703f2d74c2dfa6fdb367e9d7e309028005a907d.tar.gz
DynamicExtension::create_static_structure: fixed heap overflow
Diffstat (limited to 'include')
-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 5c1eaab..0858fc3 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]));
}