~ubuntu-branches/ubuntu/trusty/mysql-5.5/trusty-updates

« back to all changes in this revision

Viewing changes to extra/yassl/taocrypt/src/integer.cpp

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-04-20 09:30:47 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20150420093047-yd9g5p2hesgvlzwm
Tags: 5.5.43-0ubuntu0.14.04.1
* SECURITY UPDATE: Update to 5.5.43 to fix security issues (LP: #1444616)
  - http://www.oracle.com/technetwork/topics/security/cpuapr2015-2365600.html
  - CVE-2015-0433
  - CVE-2015-0441
  - CVE-2015-0499
  - CVE-2015-0501
  - CVE-2015-0505
  - CVE-2015-2568
  - CVE-2015-2571
  - CVE-2015-2573

Show diffs side-by-side

added added

removed removed

Lines of Context:
2605
2605
void Integer::Decode(const byte* input, unsigned int inputLen, Signedness s)
2606
2606
{
2607
2607
    unsigned int idx(0);
2608
 
    byte b = input[idx++];
 
2608
    byte b = 0; 
 
2609
    if (inputLen>0)
 
2610
        b = input[idx];   // peek
2609
2611
    sign_  = ((s==SIGNED) && (b & 0x80)) ? NEGATIVE : POSITIVE;
2610
2612
 
2611
2613
    while (inputLen>0 && (sign_==POSITIVE ? b==0 : b==0xff))
2612
2614
    {
2613
 
        inputLen--;
2614
 
        b = input[idx++];
 
2615
        idx++;   // skip
 
2616
        if (--inputLen>0)
 
2617
            b = input[idx];  // peek
2615
2618
    }
2616
2619
 
2617
2620
    reg_.CleanNew(RoundupSize(BytesToWords(inputLen)));
2618
2621
 
2619
 
    --idx;
2620
2622
    for (unsigned int i=inputLen; i > 0; i--)
2621
2623
    {
2622
2624
        b = input[idx++];