Skip to content

Conversation

@balupillai
Copy link
Contributor

@balupillai balupillai commented Jan 30, 2026

Note

Medium Risk
Touches core GC object-allocation ordering and locking, so mistakes could cause hard-to-debug memory corruption or deadlocks; logging-only changes in modules are low risk.

Overview
Fixes a potential GC race in src/lgc.c during new_obj allocation by blocking the collector while linking the new object into the heap and only then calling make_grey, preventing the GC from seeing a grey-stack entry for an object not yet fully linked.

Standardizes buffer-overflow warnings in modules/curl.c and modules/pcre.c by replacing direct fprintf(stderr, ...) calls with thrlua_log(..., DCRITICAL, ...) so these events go through the shared logging mechanism.

Written by Cursor Bugbot for commit 06d6c1e. This will update automatically on new commits. Configure here.

@balupillai balupillai merged commit a11032d into main Feb 2, 2026
1 check 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.

3 participants