mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-03 22:22:08 +00:00 
			
		
		
		
	[client] main: fix heap-buffer-overflow on cursor update
This commit is contained in:
		@@ -432,7 +432,7 @@ int main_cursorThread(void * unused)
 | 
			
		||||
        g_state.state = APP_STATE_SHUTDOWN;
 | 
			
		||||
        break;
 | 
			
		||||
      }
 | 
			
		||||
      cursorSize = msg.size;
 | 
			
		||||
      cursorSize = neededSize;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    memcpy(cursor, msg.mem, neededSize);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user