Menu

#90 division by zero in shift_coordinate at gentikz.c:687

fig2dev
closed
nobody
None
2020-12-21
2020-02-24
Suhwan Song
No

Hi,
I found a division by zero in shift_coordinate at gentikz.c:687

fig2dev Version 3.2.7b
commit ca48ccc90bd3e7801a63cf9a541f292b28ed1260

Please run following command to reproduce it,

fig2dev -L tikz $PoC

ASAN LOG

AddressSanitizer:DEADLYSIGNAL
=================================================================
==18132==ERROR: AddressSanitizer: FPE on unknown address 0x0000008d1cf4 (pc 0x0000008d1cf4 bp 0x7ffc090ca1b0 sp 0x7ffc090ca0e0 T0)
    #0 0x8d1cf3 in shift_coordinate /home/tmp/mcj-fig2dev/fig2dev/dev/gentikz.c:687:19
    #1 0x8d1cf3 in gentikz_start /home/tmp/mcj-fig2dev/fig2dev/dev/gentikz.c:711
    #2 0x5495a2 in gendev_objects /home/tmp/mcj-fig2dev/fig2dev/fig2dev.c:999:2
    #3 0x5495a2 in main /home/tmp/mcj-fig2dev/fig2dev/fig2dev.c:484
    #4 0x7f189434bb96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
    #5 0x41b469 in _start (/home/tmp/fig2dev+0x41b469)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /home/tmp/mcj-fig2dev/fig2dev/dev/gentikz.c:687:19 in shift_coordinate
==18132==ABORTING
1 Attachments

Discussion

  • tkl

    tkl - 2020-08-31
    • status: open --> pending
     
  • tkl

    tkl - 2020-08-31

    This issue is fixed with commit [8819cf].

     

    Related

    Commit: [8819cf]

  • tkl

    tkl - 2020-12-21
    • status: pending --> closed
     
  • tkl

    tkl - 2020-12-21

    This issue is fixed with commit [8819cf].

     

    Related

    Commit: [8819cf]


Log in to post a comment.

MongoDB Logo MongoDB