projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
1c6def0
)
Fix: space left in buffer may be uninitilized on capacity increase
author
Jérémie Galarneau
<jeremie.galarneau@efficios.com>
Sat, 27 May 2017 10:26:27 +0000
(06:26 -0400)
committer
Jérémie Galarneau
<jeremie.galarneau@efficios.com>
Sun, 28 May 2017 13:19:12 +0000
(09:19 -0400)
In the following case of dynamic buffer resize:
|---------|---------------------|------------------------|
^ ^ ^
(a) original_size (b) original_capacity (c) new_capacity
The code (correctly) assumes that the space between b and c is
zero-initialized. However, the space between a and b will be left
uninitialized.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
No differences found
This page took
0.025438 seconds
and
4
git commands to generate.