octave-patch-tracker
[Top][All Lists]
Advanced

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

[Octave-patch-tracker] [patch #8156] randmtzig.c: prevent left-shift of


From: Philipp Kutin
Subject: [Octave-patch-tracker] [patch #8156] randmtzig.c: prevent left-shift of a 1 into sign bit in oct_init_by_entropy().
Date: Wed, 07 Aug 2013 11:08:38 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0

URL:
  <http://savannah.gnu.org/patch/?8156>

                 Summary: randmtzig.c: prevent left-shift of a 1 into sign bit
in oct_init_by_entropy().
                 Project: GNU Octave
            Submitted by: pkutin
            Submitted on: Wed 07 Aug 2013 11:08:37 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

* randmtzig.c: in expression "word[0] + ... + (word[3]<<24)", cast the latter
to uint32_t before shifting, preventing (C99) undefined behavior.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 07 Aug 2013 11:08:37 AM GMT  Name:
randmtzig-c-prevent-left-shift-of-a-1-into-sign-bit.patch  Size: 933B   By:
pkutin

<http://savannah.gnu.org/patch/download.php?file_id=28784>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8156>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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