Em qui., 28 de dez. de 2023 às 14:45, Ranier Vilela <[email protected]>
escreveu:

> Hi,
>
> The type of field fd_count is defined in winsock.h:
> typedef unsigned int    u_int;
>
> So in the struct fd_set,
> the field fd_count is unsigned int.
>
> The pgwin32_select  function has loops that use *int* as indices.
>
> Question: in Windows, the socket select function isn't missing some events?
>
> If not, It would be a good prevention practice, using the correct type,
> right?
>
> Patch attached.
>
Fix overflow with patch.

best regards,
Ranier Vilela

Attachment: v1-001-fix-socket-select-events.patch
Description: Binary data

Reply via email to