Skip to content

fix(webserver): PR #150 follow-up - #155

Merged
got3nks merged 4 commits into
amule-org:masterfrom
RealGreenDragon:pr_150_followup
Jun 14, 2026
Merged

fix(webserver): PR #150 follow-up#155
got3nks merged 4 commits into
amule-org:masterfrom
RealGreenDragon:pr_150_followup

Conversation

@RealGreenDragon

Copy link
Copy Markdown

See #150

…ing termination in CWriteStrBuffer::Write of php_core_lib

@got3nks got3nks left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is red because s[len] = '\0'; writes through const char *s (the input parameter). Should be m_buf_ptr[len] = '\0'; — write the null to the destination, not the source. Place it before the m_buf_ptr += len; advance, or equivalently use *m_buf_ptr = '\0'; after.

The cast_value_dnum(result) removal in php_native_htmlspecialchars is fine.

@RealGreenDragon

Copy link
Copy Markdown
Author

Sorry for mistake, fixed.

@RealGreenDragon
RealGreenDragon requested a review from got3nks June 14, 2026 13:14
@got3nks
got3nks merged commit d96d15d into amule-org:master Jun 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants