GNOME Bugzilla – Bug 735352
Setting year to zero causes immediate segfault
Last modified: 2014-09-01 12:53:26 UTC
Steps to reproduce: 1. Open System Settings > Date & Time 2. Disable Automatic Date & Time, if enabled 3. Enter 0 in the "Year" spinbutton 4. Click any other control that may trigger the processing of the year value, e.g. the Close button or the increment/decrement buttons 5. gnome-control-center should segmentation fault immediately
+ Trace 233997
Thread 1 (Thread 0x7ffff7ef0a00 (LWP 16593))
This should be a simple fix. Perhaps one could sanitize the input from the "Year" spinbutton before applying?
Created attachment 285005 [details] [review] datetime: Fix crash when setting year to 0
Attachment 285005 [details] pushed as 2ae2eab - datetime: Fix crash when setting year to 0