Roman Numeral Bug in Google Chrome

I don’t usually come across bugs in software that have not already been reported, so I thought it would be cool to share this really odd bug I found in Google Chrome a while ago. For some reason when creating a simple Ordered List in HTML and setting the type to Roman Numerals (both lower and upper will break I think), Chrome blows up once you hit the number 2,388!

Check out my test case here: http://stevenolte.com/chrome-ol-bug.html

chrome-crash

I’ve seen it crash in v2 and also the latest 3.0.195.10. I did of course report the bug.

Update: galderon pointed out how it’s only happening for roman numerals that are longer than 12 characters (great work Doug!) The lowest number that is greater than 12 characters just happens to be 2,388. Writing a quick Perl script reveals the following additional numbers that would also crash it (but we stop at 4,000 since browsers stop writing the roman numerals at that point):

2388: MMCCCLXXXVIII
2788: MMDCCLXXXVIII
2838: MMDCCCXXXVIII
2878: MMDCCCLXXVIII
2883: MMDCCCLXXXIII
2887: MMDCCCLXXXVII
2888: MMDCCCLXXXVIII
3288: MMMCCLXXXVIII
3338: MMMCCCXXXVIII
3378: MMMCCCLXXVIII
3383: MMMCCCLXXXIII
3387: MMMCCCLXXXVII
3388: MMMCCCLXXXVIII
3488: MMMCDLXXXVIII
3688: MMMDCLXXXVIII
3738: MMMDCCXXXVIII
3778: MMMDCCLXXVIII
3783: MMMDCCLXXXIII
3787: MMMDCCLXXXVII
3788: MMMDCCLXXXVIII
3828: MMMDCCCXXVIII
3833: MMMDCCCXXXIII
3837: MMMDCCCXXXVII
3838: MMMDCCCXXXVIII
3848: MMMDCCCXLVIII
3868: MMMDCCCLXVIII
3873: MMMDCCCLXXIII
3877: MMMDCCCLXXVII
3878: MMMDCCCLXXVIII
3882: MMMDCCCLXXXII
3883: MMMDCCCLXXXIII
3884: MMMDCCCLXXXIV
3886: MMMDCCCLXXXVI
3887: MMMDCCCLXXXVII
3888: MMMDCCCLXXXVIII
3889: MMMDCCCLXXXIX
3898: MMMDCCCXCVIII
3988: MMMCMLXXXVIII

Update 2: The issue report I filed has been assigned. w00t!

This entry was posted in Tech and tagged , , . Bookmark the permalink.

3 Responses to Roman Numeral Bug in Google Chrome

  1. Richard P. Janke says:

    How weird is this that I will download and install Chrome just to see it crash? Tomorrow.

  2. steve says:

    Not weird at all, in fact I think the term for it is Schadenfreude 😉

  3. galderon says:

    I believe it’s crashing for numbers that translate to 13 character length roman numerals (or longer).

    Your magic number, 2388 becomes mmccclxxxviii. A bigger number, 2390 works, but it’s real short at mmcccxc.

    3338 is a 13 character number, and it crashes chrome. 2888 is a 14 character number, and it also crashes it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>