CodeAdvancedAwaiting test

Focused code review

Find real defects, not style nits.

Prompt

Review this {{language}} code for correctness and security only:
```
{{code}}
```
List concrete defects as: Severity (high/medium/low) | Line(s) | Problem | Minimal fix. Check input validation, error handling, resource leaks, injection, authorisation checks, off-by-one and concurrency. Do not comment on formatting. If you are unsure, say so instead of guessing. End with “No further issues found” if nothing else stands out.

Fill the variables

Result

Review this {{language}} code for correctness and security only:
```
{{code}}
```
List concrete defects as: Severity (high/medium/low) | Line(s) | Problem | Minimal fix. Check input validation, error handling, resource leaks, injection, authorisation checks, off-by-one and concurrency. Do not comment on formatting. If you are unsure, say so instead of guessing. End with “No further issues found” if nothing else stands out.

Example

Input: A 40-line Node.js route handler.

Expected output: A table of 0–N defects with fixes.