#15807: iwinfo crashes with SIGBUS on DIR-645
------------------------------+-------------------------------------
  Reporter:  anonymous        |      Owner:  developers
      Type:  defect           |     Status:  new
  Priority:  response-needed  |  Milestone:  Barrier Breaker (trunk)
 Component:  packages         |    Version:  Trunk
Resolution:                   |   Keywords:
------------------------------+-------------------------------------

Comment (by anonymous):

 it looks like file "iwinfo_utils.c" line 182 have problem.
 should get mtd size. but get erase size. cause mmap bus error.

 fscanf(mtd, "mtd%d: %*x %x %127s", &off, &len, buf)
 should be
 fscanf(mtd, "mtd%d: %x %*x %127s", &off, &len, buf)

 the mtd format is
 dev:    size   erasesize  name
 mtd0: 00030000 00010000 "uboot"

--
Ticket URL: <https://dev.openwrt.org/ticket/15807#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to