If anyone would build bhyve with -DNDEBUG, any code in the expression
in assert() won't be executed. Remove the assertion and check the
returned size from iov_to_buf() explicitly, exiting if it is wrong.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 71323 Build 68206: arc lint + arc unit
Event Timeline
| usr.sbin/bhyve/pci_virtio_scsi.c | ||
|---|---|---|
| 753 | ||
| usr.sbin/bhyve/pci_virtio_scsi.c | ||
|---|---|---|
| 751 | This still fails to build with gcc. | |
| usr.sbin/bhyve/pci_virtio_scsi.c | ||
|---|---|---|
| 751 | That's not surprising, given this is a fix for a different issue. Please see https://reviews.freebsd.org/D55800 for the proper fix of the build failure with gcc. | |