Skip to content

check_valid() accepts empty candidate lists and max_choices = 0 #35

@HellFelix

Description

@HellFelix

check_valid() does not guard against an empty candidates list or max_choices = 0. Both cases pass validation and produce a vote round where no meaningful vote can be cast, with no error surfaced to anyone.

File: rustsystem-server/src/proof/ballot.rs:77-88

Fix: Add self.candidates.is_empty() and self.max_choices == 0 guards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LowLow prioritybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions