Skip to content

hook: review fixes for 1.29.3 (/proc files, hosts, services) - #89

Merged
ssfuisu merged 1 commit into
mainfrom
review-fixes-1.29.3
Dec 5, 2026
Merged

ssfuisu merged 1 commit into
mainfrom
review-fixes-1.29.3

Conversation

@ssfuisu

@ssfuisu ssfuisu commented Dec 5, 2026

Copy link
Copy Markdown
Owner

CodeRabbit's comments on #88, all minor:

  • /proc/stat: processes (forks since boot) is 0, not the number of processes running now
  • /proc/loadavg: formatted without %f, which a decimal-comma locale turned into 1,50
  • openat2 with RESOLVE_IN_ROOT: no synthetic /proc file, the kernel's error stays
  • if_nameindex: an allocation failure returns NULL instead of an entry without a name
  • /etc/hosts with AF_INET6 + AI_V4MAPPED (no AI_ALL): mapped IPv4 only when the name has no IPv6 address
  • service names: the transport of ai_protocol when ai_socktype is 0
  • GCONV_PATH: a colon-separated list is never taken for Cortex's own directory

Not changed: regenerating /proc/uptime and /proc/vmstat on seek (the readers checked open them again for each sample).

Tested on a device: the e2e checks proc-files, network-interfaces and etc-hosts-services pass; native tests as before (2 environmental failures that predate this).

🤖 Generated with Claude Code

- /proc/stat: processes (forks since boot) is 0, not the processes running now
- /proc/loadavg: no %f formats, which a decimal-comma locale changed to "1,50"
- openat2 with RESOLVE_IN_ROOT: no synthetic /proc file, the kernel's error stays
- if_nameindex: an allocation failure returns NULL, not an entry without a name
- /etc/hosts with AF_INET6 and AI_V4MAPPED (not AI_ALL): mapped IPv4 only when no IPv6 address
- service names: the transport of ai_protocol when ai_socktype is 0
- GCONV_PATH: a list (with ':') is never taken for Cortex's own directory

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cb100354-e1a3-4ef5-a7f0-6905fc18ce3d
Commits

Reviewing files that changed from the base of the PR and between 86729dc and 7239f85.

Files selected for processing: 4

  • app/src/main/cpp/hook/files.c
  • app/src/main/cpp/hook/ifaddrs.c
  • app/src/main/cpp/hook/net.c
  • app/src/main/cpp/hook/setup.c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ssfuisu
ssfuisu merged commit 799d25b into main Dec 5, 2026
6 checks passed
@ssfuisu
ssfuisu deleted the review-fixes-1.29.3 branch December 5, 2026 08:54
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