Skip to content

Socket limit for Select on Linux (memory corruption) #445

@MaxRusov

Description

@MaxRusov

TIdSocketListVCLPosix.Add checks Count < FD_SETSIZE. It is incorrect in Posix. Need to check: AHandle < FD_SETSIZE.

_FD_SET causes memory corruption if AHandle > 1024.

It is advisable to replace select to poll in Linux

Metadata

Metadata

Assignees

Labels

Element: Socket StacksIssues related to OS socket APIs, TIdStack and TIdSocketList descedants, etcStatus: PendingIssue is pending external update or releaseType: BugIssue is a bug in existing code

Projects

Status

In review

Relationships

None yet

Development

No branches or pull requests

Issue actions