mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	Fixed SDL_iconv_string() truncation when handling SDL_ICONV_E2BIG
This commit is contained in:
		@@ -828,7 +828,8 @@ char *SDL_iconv_string(const char *tocode, const char *fromcode, const char *inb
 | 
			
		||||
            outbuf = string + (outbuf - oldstring);
 | 
			
		||||
            outbytesleft = stringsize - (outbuf - string);
 | 
			
		||||
            SDL_memset(outbuf, 0, 4);
 | 
			
		||||
        } break;
 | 
			
		||||
            continue;
 | 
			
		||||
        }
 | 
			
		||||
        case SDL_ICONV_EILSEQ:
 | 
			
		||||
            /* Try skipping some input data - not perfect, but... */
 | 
			
		||||
            ++inbuf;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user