Skip to content

Adding UTF-8 overflow and validity checks - #25

Merged
jdw-creare merged 2 commits into
developfrom
feature/prevent-overflow
Apr 29, 2026
Merged

jdw-creare merged 2 commits into
developfrom
feature/prevent-overflow

Conversation

@BAyotte

@BAyotte BAyotte commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

This adds UTF-8 overflow and validity checks, a test script to confirm we handle the UTF-8 correctly, and xml escaping.

@BAyotte
BAyotte requested a review from jdw-creare April 29, 2026 12:19
@BAyotte BAyotte self-assigned this Apr 29, 2026
@BAyotte BAyotte changed the title checking input characters validity and escaping html Adding UTF-8 overflow and validity checks Apr 29, 2026
@jdw-creare

Copy link
Copy Markdown
Contributor

Thanks Blaine! It looks like we have a black formatting failure - would you mind running black -l 120 . on the repo and pushing the changes? Then I'll take a look at it!

@sonarqubecloud

Copy link
Copy Markdown

@jdw-creare jdw-creare left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me, thanks Blaine!

Comment thread ogc/servers.py
logger = logging.getLogger(__name__)


def _check_query_string(raw_qs: bytes) -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like, if we ever want to extend our input validation, this will serve nicely as the place to do that.

@jdw-creare
jdw-creare merged commit ee40985 into develop Apr 29, 2026
5 checks passed
@jdw-creare
jdw-creare deleted the feature/prevent-overflow branch April 29, 2026 17:57
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.

2 participants