Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ecma_uint32_to_utf8_string did not fill string as zero-terminated. #5194

Open
lygstate opened this issue Dec 10, 2024 · 0 comments · May be fixed by #5196
Open

ecma_uint32_to_utf8_string did not fill string as zero-terminated. #5194

lygstate opened this issue Dec 10, 2024 · 0 comments · May be fixed by #5196
Labels
bug Undesired behaviour ecma core Related to core ECMA functionality

Comments

@lygstate
Copy link
Contributor

The comment is ensure that

/**
 * ECMA-defined conversion of UInt32 to String (zero-terminated).
 *
 * See also:
 *          ECMA-262 v5, 9.8.1
 *
 * @return number of bytes copied to buffer
 */
lit_utf8_size_t
ecma_uint32_to_utf8_string (uint32_t value, /**< value to convert */
                            lit_utf8_byte_t *out_buffer_p, /**< buffer for string */
                            lit_utf8_size_t buffer_size) /**< size of buffer */

lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 10, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 10, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 10, 2024
@LaszloLango LaszloLango added bug Undesired behaviour ecma core Related to core ECMA functionality labels Dec 11, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 11, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 11, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 11, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 12, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 12, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 12, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 17, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 17, 2024
lygstate added a commit to lygstate/jerryscript that referenced this issue Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour ecma core Related to core ECMA functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants