Re: Capability to integer casts on CheriBSD
Richard Kettlewell <[email protected]> Mon, 30 Oct 2023 19:58:07 +0000
| Newsgroups | gmane.network.inn |
|---|---|
| Message-ID | <[email protected]> |
On 30/10/2023 09:49, Richard Kettlewell wrote:
> // Total length of pages
> size_t total_length = start+offset + length + end_offset;
^^^^^^^^^^^^
Should be start_offset of course.
> return msync(start, total_length, flags);
>
> Totally untested - the calculation should be out into a distinct
> function so it can be unit-tested properly.
ttfn/rjk
--
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers