Description of problem: "env -i links -dump" segfaults Version-Release number of selected component (if applicable): elinks-0.4.2-1 How reproducible: Always Steps to Reproduce: 1. env -i links -dump http://localhost/ Actual results: Segmentation fault Expected results: No segfault! Additional info:
Even segfaults with: env -i links -no-home -dump http://localhost/ The problem is the call RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) which segfaults since RAND_file_name returns NULL if $HOME is not set. RAND_egd is not necessary for a Linux system anyway - I'm testing a patch to remove this section of code.
Created attachment 91614 [details] remove egd support This patch removes EGD support, which is unnecessary on Linux, and fixes the segfault.
Thanks for the patch. Fixed package will appear in rawhide shortly.