[InterNetNews/inn] f1a57c: ovsqlite: Fix latent bug in write_request()

Julien ÉLIE noreply at github.com
Mon Jan 9 20:59:14 UTC 2023


  Branch: refs/heads/main
  Home:   https://github.com/InterNetNews/inn
  Commit: f1a57cba6c8ae9664d7868c737ceead6391af16a
      https://github.com/InterNetNews/inn/commit/f1a57cba6c8ae9664d7868c737ceead6391af16a
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M storage/ovsqlite/ovsqlite.c

  Log Message:
  -----------
  ovsqlite: Fix latent bug in write_request()

data, and not request->data, is expected to be written.
They are the same except in a rare event: when the request is larger than
the socket's output buffer AND a signal arrives while the write call blocks.

Bug found with a "variable set but not used" gcc warning.

Fix confirmed by Bo Lindbergh, author of ovsqlite.




More information about the inn-committers mailing list