microsoft / microsoft/markitdown

MarkItDown 解析旧版 .doc 存在原生崩溃 Bug

Open
#2,288 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
186k
Forks
13.7k
Avg merge
1d 4h
Merged PRs (30d)
49

Description

Microsoft markitdown (v0.0.2) 目前对旧版二进制 OLE2 复合文档的格式识别不够精准。当遇到 .doc 文件时,它错误地将其判定为 Excel .xls 文件并强行调用 pandas + xlrd 去读取工作簿,导致 100% 触发 XLRDError 异常抛错!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with an old binary .doc file using MarkItDown v0.0.2, then trace the format-detection path that routes it to pandas and xlrd. Confirm the fix by ensuring .doc input is no longer treated as an Excel workbook and does not raise XLRDError.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.