mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 12:07:31 +00:00 
			
		
		
		
	 dbfe3c7c28
			
		
	
	
		dbfe3c7c28
		
	
	
	
	
		
			
			check_type() fails to reject optional members with reserved names,
because it neglects to strip off the leading '*'.  Fix that.
The stripping in check_name_str() is now useless.  Drop.
Also drop the "no leading '*'" assertion, because valid_name.match()
ensures it can't fail.
Fixes: 9fb081e0b9
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210323094025.3569441-8-armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
		
	
			
		
			
				
	
	
		
			3 lines
		
	
	
		
			106 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
		
			106 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| reserved-member-u.json: In struct 'Oops':
 | |
| reserved-member-u.json:7: 'data' member '*u' uses reserved name
 |