Skip to content

Publisher message length check overflow #15

@RyanYANG52

Description

@RyanYANG52

Hi, cloudtoid

in publisher code, message length needs to be small than capacity, if tailoffset is great than long.MaxLength, it will SafeIncrement to a negative value, so this line here should check if TailOffset < HeadOffset

var capacity = Buffer.Capacity - tailOffset + header.HeadOffset;

great work by the work

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions