Skip to content

Conversation

@eldering
Copy link
Member

and also test against nullptr (even though that's zero, thus false by definition).

To silence coverity scan warning.

@eldering eldering requested a review from meisterT October 26, 2025 11:05
@eldering eldering enabled auto-merge October 26, 2025 11:08
@eldering eldering added this pull request to the merge queue Oct 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 26, 2025
and also test against `nullptr` (even though that's
zero, thus false by definition).

To silence the coverity scan warning.
This is causing some trouble on CI in our integration tests, e.g.
https://github.com/DOMjudge/domjudge/actions/runs/18819431955/job/53692609380:
```
2025-10-26T15:17:47.393646+00:00] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException: "["An exception occurred while     executing a query: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction"]" at ImportProblemService.php line 8    96 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException(code: 0): [\"An exception occurred while executing a query: SQLSTATE[40001    ]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction\"] at /opt/domjudge/domserver/webapp/src/Service/ImportProblemService.    php:896)"} []
```

Related: #2848
@eldering eldering added this pull request to the merge queue Oct 26, 2025
Merged via the queue into main with commit 1e706f0 Oct 26, 2025
42 checks passed
@eldering eldering deleted the fix-coverity-warn-fopen branch October 26, 2025 23:23
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.

3 participants