strstr function in HTTP server

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Guys,

I have noticed that strstr function used in HTTP server is not operating on C-strings (null terminated).

This could lead to numerous problems.

How is it supposed to work?

Is terminating null appended somewhere inside a packet?

Oleg

4 Replies
GregG_16
Employee
Employee
50 sign-ins 25 sign-ins 25 comments on KBA

Hello, I have sent you a private message on this.

0 Likes
Anonymous
Not applicable

Hi Gangi,

This looks like a valid bug report.

Why not sent the discussion in public forum?

Anonymous
Not applicable

Hey, I still find the dangerous strstr usage in http server implementation of SDK-3.3.1.

0 Likes
Anonymous
Not applicable

I also meet this problem, could you give me a solution?

0 Likes