LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1234|回复: 3

Firefox 3.0.5 成功编译,运行buffer overflow

[复制链接]
发表于 2009-2-4 05:23:35 | 显示全部楼层 |阅读模式
测试了mozilla ftp上的3.0.5 source tarball, 也测试了cvs里面的代码,都能顺利编译通过,但是,只要运行就buffer overflow.

简易编译过程:
* 准备了一个非常基础的 .mozconfig 见[1]
* make -f client.mk build
* 显示成功编译
* 运行obj-@CONFIG_GUESS@/dist/bin/firefox
* 运行显示buffer overflow 输出见[2]


系统信息:
* ubuntu 8.10 amd64
* gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)


[1] .mozconfig

  1. mk_add_options MOZ_CO_PROJECT=browser
  2. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
  3. ac_add_options --enable-application=browser
复制代码


[2] buffer overflow output

  1. $ ./obj-x86_64-unknown-linux-gnu/dist/bin/firefox
  2. *** buffer overflow detected ***: ./obj-x86_64-unknown-linux-gnu/dist/
  3. bin/firefox-bin terminated
  4. ======= Backtrace: =========
  5. /lib/libc.so.6(__fortify_fail+0x37)[0x7f9b42971877]
  6. /lib/libc.so.6[0x7f9b4296f740]
  7. /lib/libc.so.6[0x7f9b4296fdfb]
  8. ./obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so(XRE_GetBinaryPath
  9. +0x4d)[0x7f9b46de29d7]
  10. ./obj-x86_64-unknown-linux-gnu/dist/bin/firefox-bin[0x400e9e]
  11. /lib/libc.so.6(__libc_start_main+0xe6)[0x7f9b42890466]
  12. ./obj-x86_64-unknown-linux-gnu/dist/bin/firefox-bin[0x400cf9]
  13. ======= Memory map: ========
  14. 00400000-00402000 r-xp 00000000 08:05 1309888          /opt/
  15. build_mozilla/mozilla/obj-x86_64-unknown-linux-gnu/dist/bin/firefox-
  16. bin
  17. 00602000-00603000 r--p 00002000 08:05 1309888          /opt/
  18. build_mozilla/mozilla/obj-x86_64-unknown-linux-gnu/dist/bin/firefox-
  19. bin
  20. 00603000-00604000 rw-p 00003000 08:05 1309888          /opt/
  21. build_mozilla/mozilla/obj-x86_64-unknown-linux-gnu/dist/bin/firefox-
  22. bin
  23. 7f9b3e700000-7f9b3e800000 rw-p 7f9b3e700000 00:00 0
  24. 7f9b3e839000-7f9b3e83e000 r-xp 00000000 08:05 509740   /usr/lib/
  25. libXdmcp.so.6.0.0
  26. 7f9b3e83e000-7f9b3ea3d000 ---p 00005000 08:05 509740   /usr/lib/
  27. libXdmcp.so.6.0.0
  28. 7f9b3ea3d000-7f9b3ea3e000 rw-p 00004000 08:05 509740   /usr/lib/
  29. libXdmcp.so.6.0.0
  30. 7f9b3ea3e000-7f9b3ea40000 r-xp 00000000 08:05 509738   /usr/lib/
  31. libXau.so.6.0.0
  32. 7f9b3ea40000-7f9b3ec3f000 ---p 00002000 08:05 509738   /usr/lib/
  33. libXau.so.6.0.0
  34. 7f9b3ec3f000-7f9b3ec40000 rw-p 00001000 08:05 509738   /usr/lib/
  35. libXau.so.6.0.0
  36. 7f9b3ec40000-7f9b3ec48000 r-xp 00000000 08:05 1816839  /lib/
  37. librt-2.8.90.so
  38. 7f9b3ec48000-7f9b3ee47000 ---p 00008000 08:05 1816839  /lib/
  39. librt-2.8.90.so
  40. 7f9b3ee47000-7f9b3ee48000 r--p 00007000 08:05 1816839  /lib/
  41. librt-2.8.90.so
  42. 7f9b3ee48000-7f9b3ee49000 rw-p 00008000 08:05 1816839  /lib/
  43. librt-2.8.90.so
  44. 7f9b3ee49000-7f9b3ee60000 r-xp 00000000 08:05 508816   /usr/lib/
  45. libICE.so.6.3.0
  46. 7f9b3ee60000-7f9b3f05f000 ---p 00017000 08:05 508816   /usr/lib/
  47. libICE.so.6.3.0
  48. 7f9b3f05f000-7f9b3f061000 rw-p 00016000 08:05 508816   /usr/lib/
  49. libICE.so.6.3.0
  50. 7f9b3f061000-7f9b3f064000 rw-p 7f9b3f061000 00:00 0
  51. 7f9b3f064000-7f9b3f06c000 r-xp 00000000 08:05 509736   /usr/lib/
  52. libSM.so.6.0.0
  53. 7f9b3f06c000-7f9b3f26b000 ---p 00008000 08:05 509736   /usr/lib/
  54. libSM.so.6.0.0
  55. 7f9b3f26b000-7f9b3f26c000 r--p 00007000 08:05 509736   /usr/lib/
  56. libSM.so.6.0.0
  57. 7f9b3f26c000-7f9b3f26d000 rw-p 00008000 08:05 509736   /usr/lib/
  58. libSM.so.6.0.0
  59. 7f9b3f26d000-7f9b3f288000 r-xp 00000000 08:05 507416   /usr/lib/
  60. libxcb.so.1.0.0
  61. 7f9b3f288000-7f9b3f487000 ---p 0001b000 08:05 507416   /usr/lib/
  62. libxcb.so.1.0.0
  63. 7f9b3f487000-7f9b3f488000 r--p 0001a000 08:05 507416   /usr/lib/
  64. libxcb.so.1.0.0
  65. 7f9b3f488000-7f9b3f489000 rw-p 0001b000 08:05 507416   /usr/lib/
  66. libxcb.so.1.0.0
  67. 7f9b3f489000-7f9b3f48a000 r-xp 00000000 08:05 507689   /usr/lib/libxcb-
  68. xlib.so.0.0.0
  69. 7f9b3f48a000-7f9b3f689000 ---p 00001000 08:05 507689   /usr/lib/libxcb-
  70. xlib.so.0.0.0
  71. 7f9b3f689000-7f9b3f68a000 r--p 00000000 08:05 507689   /usr/lib/libxcb-
  72. xlib.so.0.0.0
  73. 7f9b3f68a000-7f9b3f68b000 rw-p 00001000 08:05 507689   /usr/lib/libxcb-
  74. xlib.so.0.0.0
  75. 7f9b3f68b000-7f9b3f6ba000 r-xp 00000000 08:05 1816961  /lib/libpcre.so.
  76. 3.12.1
  77. 7f9b3f6ba000-7f9b3f8b9000 ---p 0002f000 08:05 1816961  /lib/libpcre.so.
  78. 3.12.1
  79. 7f9b3f8b9000-7f9b3f8ba000 r--p 0002e000 08:05 1816961  /lib/libpcre.so.
  80. 3.12.1
  81. 7f9b3f8ba000-7f9b3f8bb000 rw-p 0002f000 08:05 1816961  /lib/libpcre.so.
  82. 3.12.1
  83. 7f9b3f8bb000-7f9b3f8d5000 r-xp 00000000 08:05 1390012  /lib/
  84. libselinux.so.1
  85. 7f9b3f8d5000-7f9b3fad4000 ---p 0001a000 08:05 1390012  /lib/
  86. libselinux.so.1
  87. 7f9b3fad4000-7f9b3fad5000 r--p 00019000 08:05 1390012  /lib/
  88. libselinux.so.1
  89. 7f9b3fad5000-7f9b3fad6000 rw-p 0001a000 08:05 1390012  /lib/
  90. libselinux.so.1
  91. 7f9b3fad6000-7f9b3fad7000 rw-p 7f9b3fad6000 00:00 0
  92. 7f9b3fad7000-7f9b3faff000 r-xp 00000000 08:05 621951   /usr/local/lib/
  93. libpng12.so.0.34.0
  94. 7f9b3faff000-7f9b3fcfe000 ---p 00028000 08:05 621951   /usr/local/lib/
  95. libpng12.so.0.34.0
  96. 7f9b3fcfe000-7f9b3fcff000 r--p 00027000 08:05 621951   /usr/local/lib/
  97. libpng12.so.0.34.0
  98. 7f9b3fcff000-7f9b3fd00000 rw-p 00028000 08:05 621951   /usr/local/lib/
  99. libpng12.so.0.34.0
  100. 7f9b3fd00000-7f9b3fd42000 r-xp 00000000 08:05 626257   /usr/local/lib/
  101. libpixman-1.so.0.12.0
  102. 7f9b3fd42000-7f9b3ff42000 ---p 00042000 08:05 626257   /usr/local/lib/
  103. libpixman-1.so.0.12.0
  104. 7f9b3ff42000-7f9b3ff44000 rw-p 00042000 08:05 626257   /usr/local/lib/
  105. libpixman-1.so.0.12.0
  106. 7f9b3ff44000-7f9b3ff4d000 r-xp 00000000 08:05 508851   /usr/lib/
  107. libXcursor.so.1.0.2
  108. 7f9b3ff4d000-7f9b4014d000 ---p 00009000 08:05 508851   /usr/lib/
  109. libXcursor.so.1.0.2
  110. 7f9b4014d000-7f9b4014e000 rw-p 00009000 08:05 508851   /usr/lib/
  111. libXcursor.so.1.0.2
  112. 7f9b4014e000-7f9b40155000 r-xp 00000000 08:05 507384   /usr/lib/
  113. libXrandr.so.2.1.0
  114. 7f9b40155000-7f9b40354000 ---p 00007000 08:05 507384   /usr/lib/
  115. libXrandr.so.2.1.0
  116. 7f9b40354000-7f9b40355000 r--p 00006000 08:05 507384   /usr/lib/
  117. libXrandr.so.2.1.0
  118. 7f9b40355000-7f9b40356000 rw-p 00007000 08:05 507384   /usr/lib/
  119. libXrandr.so.2.1.0
  120. 7f9b40356000-7f9b4035f000 r-xp 00000000 08:05 508043   /usr/lib/
  121. libXi.so.6.0.0
  122. 7f9b4035f000-7f9b4055f000 ---p 00009000 08:05 508043   /usr/lib/
  123. libXi.so.6.0.0
  124. 7f9b4055f000-7f9b40560000 r--p 00009000 08:05 508043   /usr/lib/
  125. libXi.so.6.0.0
  126. 7f9b40560000-7f9b40561000 rw-p 0000a000 08:05 508043   /usr/lib/
  127. libXi.so.6.0.0
  128. 7f9b40561000-7f9b40563000 r-xp 00000000 08:05 507860   /usr/lib/
  129. libXinerama.so.1.0.0
  130. 7f9b40563000-7f9b40762000 ---p 00002000 08:05 507860   /usr/lib/
  131. libXinerama.so.1.0.0
  132. 7f9b40762000-7f9b40763000 rw-p 00001000 08:05 507860   /usr/lib/
  133. libXinerama.so.1.0.0
  134. 7f9b40763000-7f9b40773000 r-xp 00000000 08:05 507663   /usr/lib/
  135. libXext.so.6.4.0
  136. 7f9b40773000-7f9b40973000 ---p 00010000 08:05 507663   /usr/lib/
  137. libXext.so.6.4.0
  138. 7f9b40973000-7f9b40975000 rw-p 00010000 08:05 507663   /usr/lib/
  139. libXext.so.6.4.0
  140. 7f9b40975000-7f9b4099c000 r-xp 00000000 08:05 508029   /usr/lib/
  141. libexpat.so.1.5.2
  142. 7f9b4099c000-7f9b40b9c000 ---p 00027000 08:05 508029   /usr/lib/
  143. libexpat.so.1.5.2
  144. 7f9b40b9c000-7f9b40b9e000 r--p 00027000 08:05 508029   /usr/lib/
  145. libexpat.so.1.5.2
  146. 7f9b40b9e000-7f9b40b9f000 rw-p 00029000 08:05 508029   /usr/lib/
  147. libexpat.so.1.5.2
  148. 7f9b40b9f000-7f9b40ba4000 r-xp 00000000 08:05 508040   /usr/lib/
  149. libXfixes.so.3.1.0
  150. 7f9b40ba4000-7f9b40da3000 ---p 00005000 08:05 508040   /usr/lib/
  151. libXfixes.so.3.1.0
  152. 7f9b40da3000-7f9b40da4000 rw-p 00004000 08:05 508040   /usr/lib/
  153. libXfixes.so.3.1.0
  154. 7f9b40da4000-7f9b40da6000 r-xp 00000000 08:05 509752   /usr/lib/
  155. libXdamage.so.1.1.0
  156. 7f9b40da6000-7f9b40fa5000 ---p 000Aborted
复制代码
 楼主| 发表于 2009-2-4 17:18:29 | 显示全部楼层
bump,
回复 支持 反对

使用道具 举报

发表于 2009-2-17 13:15:17 | 显示全部楼层
firefox3.0.6在我这里正常运行,我用的是ubuntu7.10,scim输入法,tar.bz中文安装包
这个版本有一个详细历史记录的功能,记录了上网时间,我觉得很人性化,在这里赞一个!
回复 支持 反对

使用道具 举报

发表于 2009-2-17 17:26:55 | 显示全部楼层
自己编译的firefox是不是不能自动更新?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表