Skip to content

Commit

Permalink
Fix: Vulnerability in Comparison of different type sizes knolleary#1001
Browse files Browse the repository at this point in the history
  • Loading branch information
hmueller01 committed Mar 10, 2024
1 parent 5f79424 commit 811dd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PubSubClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ boolean PubSubClient::publish(const char* topic, const uint8_t* payload, unsigne
length = writeString(topic,this->buffer,length);

// Add payload
uint16_t i;
unsigned int i;
for (i=0;i<plength;i++) {
this->buffer[length++] = payload[i];
}
Expand Down

0 comments on commit 811dd01

Please sign in to comment.