mirror of
				https://git.wownero.com/wownero/RandomWOW.git
				synced 2024-08-15 00:23:14 +00:00 
			
		
		
		
	Fixed a possibility of buffer overflow in Superscalar generator
This commit is contained in:
		
							parent
							
								
									ddb3aea562
								
							
						
					
					
						commit
						3f7139d3aa
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -679,7 +679,7 @@ namespace randomx { | |||
| 
 | ||||
| 				//if we have issued all macro-ops for the current RandomX instruction, create a new instruction
 | ||||
| 				if (macroOpIndex >= currentInstruction.getInfo().getSize()) { | ||||
| 					if (portsSaturated) | ||||
| 					if (portsSaturated || programSize >= RANDOMX_SUPERSCALAR_MAX_SIZE) | ||||
| 						break; | ||||
| 					//select an instruction so that the first macro-op fits into the current slot
 | ||||
| 					currentInstruction.createForSlot(gen, decodeBuffer->getCounts()[bufferIndex], decodeBuffer->getIndex(), decodeBuffer->getSize() == bufferIndex + 1, bufferIndex == 0); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue