Coder Social home page Coder Social logo

bl_count[0] uninitialized , about isa-l HOT 2 CLOSED

intel avatar intel commented on August 21, 2024
bl_count[0] uninitialized ,

from isa-l.

Comments (2)

rjoursler avatar rjoursler commented on August 21, 2024

Thank you for submitting this issue, we will go ahead and fix it. This uninitialized value currently does not cause an issue because in this loop
https://github.com/01org/isa-l/blob/9e79faeeff129ce5964fc40174d007c32e49e5b3/igzip/huff_codes.c#L1015-L1016
the important bits for next_code[i] are the first i bits, which are not set by count[0]. All other bits are masked off in a call to the function bit_reverse a short while later.

from isa-l.

young66 avatar young66 commented on August 21, 2024

https://github.com/01org/isa-l/blob/9e79faeeff129ce5964fc40174d007c32e49e5b3/igzip/huff_codes.c#L1015-L1016
in this line, when i =1,the code seen like this
next_code[1] = (next_code[0] + count[0]) << 1;
and the count[0] has read uninitialized

the count is the third argument of function set_huff_codes
https://github.com/01org/isa-l/blob/9e79faeeff129ce5964fc40174d007c32e49e5b3/igzip/huff_codes.c#L1487-L1490

from isa-l.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.