Skip to content

Go func_recall_pct: Bodyless Functions Dropped by _slice_by_braces #1756

Closed

Description

@squid-protocol

Go function recall drops because GitGalaxy misses bodyless functions (e.g., assembly implementations or //go:linkname linked functions).

  • The Go func_start regex actually succeeds in matching the signatures of these bodyless functions.
  • However, the extraction pipeline drops them later during scope resolution in gitgalaxy/core/detector.py. Within _slice_by_braces, Go relies on a generic fallback block that searches forward for an opening brace ({). Since these bodyless functions don't have one, brace_idx evaluates to -1, causing the loop to discard the valid function match entirely.

Activity

  1. added
    bug
    core-engine
    threat: false-negative
    on Aug 16, 2026
  2. added this to the v2.4.8 milestone on Aug 16, 2026
  3. squid-protocol commented on Aug 16, 2026

    @squid-protocol
    OwnerAuthor

    @uuzzrm - if you're interested - care to take a stab at this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcore-enginethreat: false-negative

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions