bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seq Segment Fault.


From: Ryan Whited
Subject: Seq Segment Fault.
Date: Fri, 18 Sep 2009 06:38:11 -0400

Here is my code.

#!/bin/bash

echo "Add directions here."

read  URL
read  NUM1
read  NUM2
read  EXT
echo "Please choose a folder name."
read NAM
mkdir $HOME/$NAM
cd $HOME/$NAM


for i in $(seq -w $NUM1 $NUM2); do wget "$URL${i}$EXT"; done

I was testing out my script, and I came across an instance where I had
a large "i" (it started at 0000000000 and went to 9999999999). It
processed for a few minutes (my poor intel atom) and returned with a
"Segmentation fault". From what I know from Assembly, I think this is
a buffer overflow which could allow for malicious code injection.
Please let me know if I can be of further assistance.
-- 
Peace Out and Rock On,
             Ryan Whited




reply via email to

[Prev in Thread] Current Thread [Next in Thread]