mirror of
				https://github.com/owntone/owntone-server.git
				synced 2025-10-30 00:05:05 -04:00 
			
		
		
		
	[pipe] Error check of b64_decode return value
This commit is contained in:
		
							parent
							
								
									103dda29f3
								
							
						
					
					
						commit
						53d7005547
					
				| @ -418,6 +418,13 @@ parse_item(struct input_metadata *m, const char *item) | |||||||
| 	free(*data); | 	free(*data); | ||||||
| 
 | 
 | ||||||
|       *data = b64_decode(s); |       *data = b64_decode(s); | ||||||
|  |       if (!*data) | ||||||
|  | 	{ | ||||||
|  | 	  DPRINTF(E_LOG, L_PLAYER, "Base64 decode of '%s' failed\n", s); | ||||||
|  | 
 | ||||||
|  | 	  pthread_mutex_unlock(&pipe_metadata_lock); | ||||||
|  | 	  goto out_error; | ||||||
|  | 	} | ||||||
| 
 | 
 | ||||||
|       DPRINTF(E_DBG, L_PLAYER, "Read Shairport metadata (type=%8x, code=%8x): '%s'\n", type, code, *data); |       DPRINTF(E_DBG, L_PLAYER, "Read Shairport metadata (type=%8x, code=%8x): '%s'\n", type, code, *data); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user