Skip to content

Instantly share code, notes, and snippets.

View mgaudet's full-sized avatar

Matthew Gaudet mgaudet

View GitHub Profile
@mgaudet
mgaudet / summary.txt
Created November 10, 2016 14:41
Summary of PVS Studio errors and warning on the OMR project from https://github.com/eclipse/omr/issues/413
Errors: 321
Error code : Number of errors : Summary of error : Additional info
V730 : 111 : Not all members of a class are initialized inside the constructor : Mostly in compiler and gc
V595 : 48 : Pointer was utilized before it was verified against nullptr
V614 : 13 : Potentially uninitialized variable used : Mostly in compiler/ilgen
V542 : 13 : odd type cast: 'short' to 'unsigned char *' : compiler/x/codegen
V522 : 13 : Dereferencing of the null pointer might take place : Mostly in compiler/optimizer
V575 : 12 : Null pointer passed into function : port and /thread (unix)
V501 : 12 : Identical sub-expressions to the left and right of an operator
@mgaudet
mgaudet / gist:7947377
Created December 13, 2013 16:55
Bug Report 15656765
Summary:
In iOS6 I could select text, and then open a bookmarklet (like this one for example: https://bitbucket.org/mgaudet/dayonebookmarklet/src/1062388c8320f72ca099f4e684a9d9822d7e905c/dayone.html?at=master) which grabbed the text using window.getSelection().
However, it seems in iOS7, any action to invoke a bookmarklet deselects the text.
Steps to Reproduce:
1. Have a bookmarklet which uses window.getSelection()
2. Select Text
3. Try to invoke bookmarlet