mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	json: don't move past the end of a symbol
We can't move past the } or ] or we might miss the end of the container. Now that we ignore \0 it is not a problem if the \0 is placed at the container boundary.
This commit is contained in:
		
							parent
							
								
									b54af4ab0a
								
							
						
					
					
						commit
						34800dc019
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -112,7 +112,7 @@ static inline int spa_json_next(struct spa_json * iter, const char **value)
 | 
				
			||||||
				iter->state = __STRUCT;
 | 
									iter->state = __STRUCT;
 | 
				
			||||||
				if (iter->depth > 0)
 | 
									if (iter->depth > 0)
 | 
				
			||||||
					goto again;
 | 
										goto again;
 | 
				
			||||||
				return iter->cur++ - *value;
 | 
									return iter->cur - *value;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
		case __STRING:
 | 
							case __STRING:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue