Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
e884236e
Unverified
Commit
e884236e
authored
Feb 14, 2022
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump.h, irep.h: update comments not to omit buffer length for loading. [ci skip]
parent
ad3ce7b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
include/mruby/dump.h
include/mruby/dump.h
+1
-0
include/mruby/irep.h
include/mruby/irep.h
+2
-2
No files found.
include/mruby/dump.h
View file @
e884236e
...
...
@@ -30,6 +30,7 @@ mrb_irep *mrb_read_irep_file(mrb_state*, FILE*);
MRB_API
mrb_value
mrb_load_irep_file
(
mrb_state
*
,
FILE
*
);
MRB_API
mrb_value
mrb_load_irep_file_cxt
(
mrb_state
*
,
FILE
*
,
mrbc_context
*
);
#endif
/* avoid mrb_read_irep(); use mrb_read_irep_buf() instead (may cause buffer overflow) */
MRB_API
mrb_irep
*
mrb_read_irep
(
mrb_state
*
,
const
uint8_t
*
);
MRB_API
mrb_irep
*
mrb_read_irep_buf
(
mrb_state
*
,
const
void
*
,
size_t
);
...
...
include/mruby/irep.h
View file @
e884236e
...
...
@@ -99,7 +99,7 @@ MRB_API mrb_value mrb_load_irep(mrb_state*, const uint8_t*);
/*
* @param [const void*] irep code
* @param [size_t] size of irep buffer.
If -1 is given, it is considered unrestricted.
* @param [size_t] size of irep buffer.
*/
MRB_API
mrb_value
mrb_load_irep_buf
(
mrb_state
*
,
const
void
*
,
size_t
);
...
...
@@ -108,7 +108,7 @@ MRB_API mrb_value mrb_load_irep_cxt(mrb_state*, const uint8_t*, mrbc_context*);
/*
* @param [const void*] irep code
* @param [size_t] size of irep buffer.
If -1 is given, it is considered unrestricted.
* @param [size_t] size of irep buffer.
*/
MRB_API
mrb_value
mrb_load_irep_buf_cxt
(
mrb_state
*
,
const
void
*
,
size_t
,
mrbc_context
*
);
...
...
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