Skip to content

imap-append.c example: incorrect pointer check in payload_source() #7774

Closed
@achuykov

Description

@achuykov

Hi,

This condition is always true because even incorrect offset produces valid (non-NULL) pointer:
data = &payload_text[upload_ctx->bytes_read];
if(data) {

I expect that "if" condition should check the end end of ASCIIZ string:
if(*data) {

Thanks,
Alexander

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions