mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-15 08:50:15 +00:00
out-of-bounds write
This commit is contained in:
@@ -417,6 +417,10 @@ const char *MeshTimeSync::reasonStr(Reason r)
|
||||
int MeshTimeSync::formatStatus(char *out, size_t cap, uint32_t local_time,
|
||||
uint32_t uptime_secs, bool enabled) const
|
||||
{
|
||||
if (cap == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Verdict v = evaluateNow(local_time, uptime_secs);
|
||||
const Consensus &c = v.consensus;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user