Skip to content

Potential null dereference in ngx_time.c #169

@leeriorio

Description

@leeriorio

In results of static analyze of nginx sources I founded potential null dereference

t = localtime(&s);
strftime(buf, 4, "%H", t);

localtime() function potentially can return NULL value, which will dereference in strftime(). How about to add check for this case?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions