Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

A late screenshot response can complete the next request

Open
#173 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
56/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
swift
Domain
desktop

Research direction

Read InjectionServer.swift around requestScreenshot (lines 91–122) and the .screenshotData handler (lines 272–280). Trace what happens when request A times out, request B starts, and A’s delayed response arrives; then verify that responses cannot complete the wrong request, including with a test or reproduction of that sequence.

Written by the indexing model from the issue text.

Description

requestScreenshot clears pendingScreenshot after its timeout. The .screenshotData handler then assigns any received screenshot to whichever request is pending.

The problematic sequence is: request A times out; request B starts; A's delayed response arrives. B is signalled with A's image and returns it as its own result. B's actual response can then be discarded or incorrectly satisfy another request.

Please correlate screenshot responses with their requests, or prevent reuse of the pending slot until the old response has been drained. This is a code-level finding; I haven't reproduced this timing in the app.

Dominant language
Swift
Stars
437
Forks
32
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from johnno1962/InjectionNext

All issues in johnno1962/InjectionNext

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.