Merge "mtdchar: fix offset overflow detection"