mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Prevent possibility of crash
This commit is contained in:
parent
dca2c86259
commit
9f0482dafc
2 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,10 @@
|
|||
|
||||
## 0.6.1 - TBD
|
||||
|
||||
Bug Fixes
|
||||
|
||||
- Fix possibility of crashing when calling `close-port`.
|
||||
|
||||
## 0.6 - August 21, 2017
|
||||
|
||||
Features
|
||||
|
|
|
@ -813,6 +813,8 @@ typedef struct {
|
|||
p.tok_buf_len = 0; \
|
||||
p.mem_buf = NULL; \
|
||||
p.mem_buf_len = 0; \
|
||||
p.str_bv_in_mem_buf = NULL; \
|
||||
p.str_bv_in_mem_buf_len = 0; \
|
||||
p.read_len = 1;
|
||||
|
||||
#define make_input_port(p,f,rl) \
|
||||
|
@ -832,6 +834,8 @@ typedef struct {
|
|||
p.tok_buf_len = CYC_IO_BUF_LEN; \
|
||||
p.mem_buf = malloc(CYC_IO_BUF_LEN); \
|
||||
p.mem_buf_len = 0; \
|
||||
p.str_bv_in_mem_buf = NULL; \
|
||||
p.str_bv_in_mem_buf_len = 0; \
|
||||
p.read_len = rl;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue