Skip to content

bug: obs-util: accept C hexadecimal prefixes in config integers #1531

Closed

Description

@zackees

Location

rust/obs-util/src/config_file.rs, original fix e36796043 in #1462.

Class

Logic error / blocked operation or incorrect result.

How it is reached

Configuration values such as 0x0X2a and 0x-0x2a return zero instead of matching C integer parsing.

Proposed fix and failing test

Carry the focused change and hex_integer_prefix_after_config_prefix from #1462 into a separate PR. Reproduce RED against current master, then verify GREEN and the related tests.

Decisions

Split from #1462 at the maintainer's request.

Activity

  1. zackees commented on Oct 20, 2026

    @zackees
    MemberAuthor

    Claiming: split this issue from #1462. 1. Reproduce the regression on current master. 2. Carry the individual fix and verify related tests. 3. Open one PR and land it through CI today.

  2. added
    claimed
    on Oct 20, 2026
  3. zackees commented on Oct 20, 2026

    @zackees
    MemberAuthor

    Fixed and merged in #1532. Signed and unsigned config integers accept the optional base-16 prefix after the sign, matching the C oracle. The focused differential regression and config parity tests pass. No remaining work for 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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions