Wonseok Oh found that if M <mode> inline <path> is the last thing in the input, file_change_m() leaves its read loop on EOF without reading a data command. It then puts an uninitialized stack object ID into the tree and exits 0. The result is a tree entry for a missing blob that git fsck flags.
The patch calls parse_and_store_blob() at EOF, as note_change_n() does, so fast-import dies on the missing data command. It adds a test.
Junio Hamano says this reasoning is wrong. In his view note_change_n() can call parse_and_store_blob() only because it does not loop, so file_change_m() needs a separate solution. He gives an example: a "cat-blob <object name>" line at the end of the stream with no trailing LF. The updated code ignores the return value of read_next_command(), which he suspects would make the loop run forever.
Oh's follow-up, resent in plain text after the list rejected an HTML version, proposes a different approach. The loop would die as soon as read_next_command() returns EOF, with the message "expected 'data n' command, found end of input". He notes that any other command is already rejected by parse_data(), and EOF is the only case that slips through.
The thread also contains the original patch reposted. No reviewer verdict on the revised approach is shown.