Menu

#185 FPE on get_slope()

fig2dev
pending
nobody
None
2025-03-29
2025-01-20
No

version: fig2dev Version 3.2.9a
system: ubuntu22.04

use this command to reproduce: fig2dev -L pict2e ./poc

message from ASAN:
==3546282==ERROR: AddressSanitizer: FPE on unknown address 0x55f29c641663 (pc 0x55f29c641663 bp 0x7fff8ea5de80 sp 0x7fff8ea5dd40 T0)
#0 0x55f29c641663 in get_slope /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genpict2e.c:808
#1 0x55f29c641663 in get_lineslope /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genpict2e.c:825
#2 0x55f29c641663 in put_patternline /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genpict2e.c:978
#3 0x55f29c6519b8 in genpict2e_line /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genpict2e.c:1771
#4 0x55f29c664260 in put_patternarc /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genpict2e.c:2388
#5 0x55f29c6698b5 in genpict2e_arc /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genpict2e.c:2473
#6 0x55f29c543536 in gendev_objects /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/fig2dev.c:1038
#7 0x55f29c543536 in main /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/fig2dev.c:538
#8 0x7fd02f73fd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#9 0x7fd02f73fe3f in __libc_start_main_impl ../csu/libc-start.c:392
#10 0x55f29c544f54 in _start (/home/ubuntu/target_program/fig2dev-3.2.9a/fig2dev/output2/asan_fig2dev+0x6ff54)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /home/ubuntu/asan_program/fig2dev-3.2.9a/fig2dev/dev/genpict2e.c:808 in get_slope
==3546282==ABORTING

1 Attachments

Discussion

  • tkl

    tkl - 2025-01-23

    Fixed with commit [da8992].

     

    Related

    Commit: [da8992]

  • tkl

    tkl - 2025-01-23
    • status: open --> pending
     
  • Roland Rosenfeld

     

Log in to post a comment.