Skip to content

Commit

Permalink
Avoid void ptr arithmetic in duk_alloc_pool.c
Browse files Browse the repository at this point in the history
  • Loading branch information
svaarala committed May 18, 2021
1 parent 5252b7a commit 360973e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extras/alloc-pool/duk_alloc_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void duk_alloc_pool_get_pool_stats(duk_pool_state *s, duk_pool_stats *res) {
} else {
waste_bytes += duk__alloc_pool_get_waste_estimate(curr, s->size);
}
curr = curr + s->size;
curr = (void *) ((duk_uint8_t *) curr + s->size);
}
used_count = (size_t) (s->count - free_count);

Expand Down
1 change: 1 addition & 0 deletions releases/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1379,3 +1379,4 @@ duktape_releases:
- "Improve DUK_USE_OS_STRING for macOS, iOS, watchOS, and tvOS (GH-2288)"
- "Fix JSON.stringify() handling of Array 'replacer' duplicates (e.g. JSON.stringify({foo: 123}, [\"foo\", \"foo\"])); previously incorrectly serialized multiple times, now only once (GH-2379)"
- "Use yaml.safe_load() instead of yaml.load() in Py2 tooling (GH-2384)"
- "Fix void pointer arithmetic in duk_alloc_pool.c, caused problems with MSVC (GH-2404, GH-2406)"

0 comments on commit 360973e

Please sign in to comment.