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
8a2dcdd0
Commit
8a2dcdd0
authored
Jul 04, 2016
by
Kenton Varda
Committed by
GitHub
Jul 04, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #346 from dwrensha/asan
prevent use-after-free in internal compiler API
parents
49ce5c97
4d75033b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
compiler.c++
c++/src/capnp/compiler/compiler.c++
+4
-3
No files found.
c++/src/capnp/compiler/compiler.c++
View file @
8a2dcdd0
...
...
@@ -320,12 +320,13 @@ private:
kj
::
Arena
nodeArena
;
// Arena used to allocate nodes and other permanent objects.
Workspace
workspace
;
// The temporary workspace.
std
::
unordered_map
<
Module
*
,
kj
::
Own
<
CompiledModule
>>
modules
;
// Map of parser modules to compiler modules.
Workspace
workspace
;
// The temporary workspace. This field must be declared after `modules` because objects
// allocated in the workspace may hold references to the compiled modules in `modules`.
std
::
unordered_map
<
uint64_t
,
Node
*>
nodesById
;
// Map of nodes by ID.
...
...
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