Message ID | 20230226062526.3115588-2-c@jia.je (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | [1/2] knownnetworks: fix potential out of bounds write | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
prestwoj/iwd-ci-gitlint | success | GitLint |
diff --git a/src/knownnetworks.c b/src/knownnetworks.c index 6c575e50..d4d50a6f 100644 --- a/src/knownnetworks.c +++ b/src/knownnetworks.c @@ -174,7 +174,7 @@ static const char *known_network_get_path(const struct network_info *network) for (i = 0; network->ssid[i] && pos < sizeof(path); i++) pos += snprintf(path + pos, sizeof(path) - pos, "%02x", - network->ssid[i]); + (unsigned char)network->ssid[i]); if (pos < sizeof(path)) snprintf(path + pos, sizeof(path) - pos, "_%s",