DPDK patches and discussions
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 419] usertools/dpdk-setup.sh crashes on non-alphanumeric input
Date: Mon, 16 Mar 2020 07:05:44 +0000	[thread overview]
Message-ID: <bug-419-3@http.bugs.dpdk.org/> (raw)

https://bugs.dpdk.org/show_bug.cgi?id=419

            Bug ID: 419
           Summary: usertools/dpdk-setup.sh crashes on non-alphanumeric
                    input
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: sarosh.arif@emumba.com
  Target Milestone: ---

While using usertools/dpdk-setup.sh if the user enters any non-alphanumeric
character, by mistake perhaps, instead of giving an error and allowing user to
re-enter his choice, the dpdk-setup script crashes giving the following
message:

./dpdk-setup.sh: line 598: >: syntax error: operand expected (error token is
">")

A possible solution can be to put a conditional statement before the execution
of line 598 which is:
${OPTIONS[our_entry]} ${our_entry}
To make sure this statement is only executed when the input is correct.

This error can be replicated easily by following these steps:
1. Enter these commands on the terminal
cd dpdk/usertools
./dpdk-setup.sh
2. When prompted, enter any non-alphanumeric character such as ">"

-- 
You are receiving this mail because:
You are the assignee for the bug.

                 reply	other threads:[~2020-03-16  7:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-419-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).