openframeworks / openframeworks/openFrameworks

ofLoadURLAsync Infinity Loop with Special Characters

Open
#3,124 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug core prelim-analysis
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Hi,

I am getting a Infinity Loop when I try to get a URL that contains this char "#" followed by this "$".
For example:
http://localhost/?message=#blah%
http://localhost/?message=#$%
http://localhost/?message=#asdf%

This works:
http://localhost/?message=#%

After calling ofLoadURLAsync, the function keep dispatching the ofNotifyEvent infinitely.
And the domain is never reached...

Actually I can skip this string structure to avoid this problem.
But I think somebody could look at it in certain time.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the ofLoadURLAsync entry point and trace how URLs containing the reported # and $ patterns dispatch ofNotifyEvent. Reproduce with the three failing URLs and the working comparison; done means the request stops looping and reaches the domain without repeated notifications.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.