mirror of
				https://github.com/berlin-open-wireless-lab/DAWN.git
				synced 2025-03-09 15:40:12 +00:00 
			
		
		
		
	storage: ensure SSID strings are NULL-terminated
SSID_MAX_LEN is set at 32, which is the maximum allowed size of a SSID. The strings holding SSIDs were set at that same size, which does not allow for proper string termination. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
		
							parent
							
								
									8ce09d64de
								
							
						
					
					
						commit
						a22f5a79d6
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		|  | @ -697,7 +697,7 @@ static int consume_actions(int argc, char* argv[], int harness_verbosity) | |||
|             ap0->time = faketime; | ||||
|             ap0->station_count = 0; | ||||
|             memset(ap0->ssid, '*', SSID_MAX_LEN); | ||||
|             ap0->ssid[SSID_MAX_LEN - 1] = '\0'; | ||||
|             ap0->ssid[SSID_MAX_LEN] = '\0'; | ||||
|             ap0->neighbor_report[0] = 0; | ||||
|             ap0->collision_domain = 0; | ||||
|             ap0->bandwidth = 0; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue