Closed rickywu0421 closed 2 years ago
Understood. I have changed the git commit message.
I doubt that we should increment the size of the connecting_ssid by one in owl_context instead of doing the above, because connecting_ssid should fit the length of SSID_MAX_LENGTH.
Use git rebase -i
to squash the git commits into one.
Thank @rickywu0421 for contributing!
In
owl_connect()
, whensme->ssid_len
is greater than or equal toSSID_MAX_LENGTH
,ssid_len
will be assign toSSID_MAX_LENGTH
, and a buffer overflow will occur when adding NULL terminator atowl->connecting_ssid[ssid_len]
.