TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Strstr in libc was broken for some inputs (2010)

5 pointsby antichaosover 14 years ago

1 comment

tptacekover 14 years ago
If you're not a C programmer, this is pretty close to "abcdef".index("cd") not returing 2 in Python or Ruby (strstr is a heavily optimized function, which is how this happened).
评论 #1769780 未加载