知秋一叶

日出而作,日入而息,凿井而饮,耕田而食,帝力何有于我哉
随笔 - 55, 评论 - 311, 引用 - 79

导航

工具

标签

每月存档

广告



访客

 

  A dedicated QA has been testing one of my application during the past few days. The good news is that fortunately, I'm still a qualified developer: the program design is solid, there is no design flaw and there is no data damage under exceptional conditions. The bad part is, I didn't pay enough attention to those details that I should have paid attention to. Here is a list of things, check how many of them are in your program:

  1. While using strtol or _strtoi64 to convert a user input string to numeric value, it returns the largest possible value when the number overflows. So if you use that as a criteria for overflow, you will miss out the largest value itself.
  2. We know port 0 through 1024 are reserved for system use, is 1024 included?
  3. Do you know that fopen can't open files that is located under a directory whose name contains non-ASCII characters?
  4. inet_addr accepts ip addresses like 10.0.1, and converts it to 10.0.1.0.
  5. Under what condition is “C:Temp“ a valid directory name?

相关文章

Loading...

打印 | 张贴于 2004-09-30 11:22:00 | Tag:乱谈

留言反馈

#很好的文章 编辑
楼住,很好的文章。
2005-08-28 19:06:00 | [匿名用户:xmlol]
#re:The Annoying Details 编辑
The Annoying Detailsooeess
2005-06-14 10:08:00 | [匿名用户:一氧化碳测定仪]
#re:The Annoying Details 编辑
The Annoying Detailsooeess
2005-06-13 22:31:00 | [匿名用户:PH电导溶解氧控制仪]
#re:The Annoying Details 编辑
^_^,Pretty Good!
2005-04-16 01:37:00 | [匿名用户:超声波液位计]
#re:The Annoying Details 编辑
^_^,Pretty Good!
2005-04-10 19:56:00 | [匿名用户:气体计量计]
对不起,目前本随笔不允许发表新评论.

Powered by: Joycode MVC Blogger System