Skip to content

Validate API contracts #12

@rusty1968

Description

@rusty1968

I noticed that the cookie creation functions use debug_assert! for bounds validation.

These should be runtime checks since they validate API contracts rather than internal implementation assumptions. Debug assertions are compiled out in release builds, which could lead to undefined behavior if the bounds checks fail in production.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions