mirror of
https://github.com/espressif/openthread.git
synced 2026-08-20 01:19:51 +00:00
[cli] do not pass user-controlled input as format string (#5599)
This commit is contained in:
+1
-1
@@ -327,7 +327,7 @@ void UdpExample::HandleUdpReceive(otMessage *aMessage, const otMessageInfo *aMes
|
||||
length = otMessageRead(aMessage, otMessageGetOffset(aMessage), buf, sizeof(buf) - 1);
|
||||
buf[length] = '\0';
|
||||
|
||||
mInterpreter.OutputLine(buf);
|
||||
mInterpreter.OutputLine("%s", buf);
|
||||
}
|
||||
|
||||
} // namespace Cli
|
||||
|
||||
Reference in New Issue
Block a user