Status: Unconfirmed Owner: ---- Labels: Type-Bug Pri-2 OS-All Area-Misc New issue 18897 by omattos: Sanity Check required on paste http://code.google.com/p/chromium/issues/detail?id=18897
Chrome Version : 3.0.197.11 What steps will reproduce the problem? 1. Have very long text string on the clipboard (I had 30 million chars) 2. put focus in address bar 3. press Ctrl+V What is the expected result? Chrome should either ignore the paste, limit the length of the pasted string to something reasonable, or show an error. What happens instead? Chrome tries to paste the data, consuming a gigabyte of memory and taking 30 mins. This freezes the chrome UI and makes the system unusable (due to paging). Also, this URL appears to be saved into the history database, so even after restarting Chrome it tries to re-load the string, so Chrome becomes unusable until the profile is deleted. Please provide any additional information below. Attach a screenshot if possible. While this bug is hard to trigger, when it does trigger it is unreasonable that the "bug" can't be resolved by restarting the browser. It isn't as rare as you might think - after copying some files I ended up with the file data stored on the clipboard as a hex string, and an accidental paste triggers the crash. I can imagine the same happening with "select all" on large word documents. I don't want to try it, but it would probably be a good idea to add lots of tests for these - ie. dragging and dropping very large text/data, using an image with insane dimensions, and other cases where limits should really be set. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---
