Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

A late screenshot response can complete the next request

Aperta
#173 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
swift
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Swift
Stelle
437
Fork
32
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di johnno1962/InjectionNext

Tutte le issue di johnno1962/InjectionNext

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.