Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
5ba28583
Commit
5ba28583
authored
Aug 19, 2018
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix valgrind errors.
parent
98113bf5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
async-io-unix.c++
c++/src/kj/async-io-unix.c++
+4
-2
table.c++
c++/src/kj/table.c++
+1
-1
super-test.sh
super-test.sh
+1
-1
No files found.
c++/src/kj/async-io-unix.c++
View file @
5ba28583
...
...
@@ -782,8 +782,10 @@ public:
}
private
:
SocketAddress
()
:
addrlen
(
0
)
{
memset
(
&
addr
,
0
,
sizeof
(
addr
));
SocketAddress
()
{
// We need to memset the whole object 0 otherwise Valgrind gets unhappy when we write it to a
// pipe, due to the padding bytes being uninitialized.
memset
(
this
,
0
,
sizeof
(
*
this
));
}
socklen_t
addrlen
;
...
...
c++/src/kj/table.c++
View file @
5ba28583
...
...
@@ -809,7 +809,7 @@ const InsertionOrderIndex::Link InsertionOrderIndex::EMPTY_LINK = { 0, 0 };
InsertionOrderIndex
::
InsertionOrderIndex
()
:
capacity
(
0
),
links
(
const_cast
<
Link
*>
(
&
EMPTY_LINK
))
{}
InsertionOrderIndex
::~
InsertionOrderIndex
()
noexcept
(
false
)
{
if
(
links
!=
&
EMPTY_LINK
)
delete
links
;
if
(
links
!=
&
EMPTY_LINK
)
delete
[]
links
;
}
void
InsertionOrderIndex
::
reserve
(
size_t
size
)
{
...
...
super-test.sh
View file @
5ba28583
...
...
@@ -516,7 +516,7 @@ if [ "x`uname`" != xDarwin ] && which valgrind > /dev/null; then
# Running the fuzz tests under Valgrind is a great thing to do -- but it takes
# some 40 minutes. So, it needs to be done as a separate step of the release
# process, perhaps along with the AFL tests.
CAPNP_SKIP_FUZZ_TEST
=
1 doit valgrind
--leak-check
=
full
--track-fds
=
yes
--error-exitcode
=
1 ./capnp-test
CAPNP_SKIP_FUZZ_TEST
=
1 doit valgrind
--leak-check
=
full
--track-fds
=
yes
--error-exitcode
=
1
--child-silent-after-fork
=
yes
--sim-hints
=
lax-ioctls
./capnp-test
fi
doit make maintainer-clean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment