Skip to content

add revision troubleshooting - #41

Merged
splitice merged 2 commits into
masterfrom
feat/libipthelper-improve
Sep 21, 2026
Merged

splitice merged 2 commits into
masterfrom
feat/libipthelper-improve

Conversation

@splitice

Copy link
Copy Markdown
Owner

No description provided.

@splitice

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-21T10:26:00.688690Z e665038 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e665038836

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ipthelper/ipthelper.c Outdated
if (!status && (commit_errno == EPROTOTYPE ||
commit_errno == EPROTONOSUPPORT || commit_errno == ENOENT))
diagnose_revision4(handle, diagnostic, diagnostic_length);
iptc_free(handle);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid freeing handles consumed by successful commits

On every successful IPv4 commit, iptc_commit already consumes and frees the handle, so this unconditional iptc_free double-frees it and can crash or corrupt the process; the same defect exists for IPv6 at line 1137. The previous managed IptcInterface.Commit path explicitly treated successful commits as consuming the handle and freed it only after failure, so these wrappers should likewise call iptc_free/ip6tc_free only when status is false.

AGENTS.md reference: AGENTS.md:L36-L36

Useful? React with 👍 / 👎.

@splitice
splitice merged commit 67ef002 into master Sep 21, 2026
2 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.

1 participant