GithubHelp home page GithubHelp logo

Comments (4)

Tojaj avatar Tojaj commented on May 12, 2024

Hi, thanks for the report!
But I'm not sure if I understand it correctly: You have a package that contains a lot of ANSI escape sequences, then you create a metadata by createrepo_c, right? And then, when you try to open the sqlite database (generated by the createrepo) by yourself (by python's sqlite module) then your python program crashes?

Can you please provide me the package or its spec file or at least a content of the %description section? Plus a example code which leads to crash when opening the generated database?

Thank you
Tomas

from createrepo_c.

kalium99 avatar kalium99 commented on May 12, 2024

Not quite.

If you were to append an ANSI escape sequence to the spec's %description field (or perhaps elsewhere), and then build the RPM and run createrepo_c for that RPM, the yum-metadata-parser may crash when parsing the repo. This is because createrepo_c does not strip the ANSI escape sequence.

If you open up a spec file in binary mode, and then append chr(27) to the %description, run createrepo_c, and then look at the primary.xml. It still has the chr 27.

If you create the repo with createrepo, it removed the chr 27.

To actually recreate it I think you need to be fetching the sqlite database, because it's in this parser where it seems to crash.

from createrepo_c.

Tojaj avatar Tojaj commented on May 12, 2024

I see! I will fix it soon. Thanks for cooperation.
Dne 13. 2. 2014 6:03 "kalium99" [email protected] napsal(a):

Not quite.

If you were to append an ANSI escape sequence to the spec's %description
field (or perhaps elsewhere), and then build the RPM and run createrepo_c
for that RPM, the yum-metadata-parser may crash when parsing the repo. This
is because createrepo_c does not strip the ANSI escape sequence.

If you open up a spec file in binary mode, and then append chr(27) to the
%description, run createrepo_c, and then look at the primary.xml. It still
has the chr 27.

If you create the repo with createrepo, it removed the chr 27.

To actually recreate it I think you need to be fetching the sqlite
database, because it's in this parser where it seems to crash.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-34948811
.

from createrepo_c.

Tojaj avatar Tojaj commented on May 12, 2024

Fixed in commit 7efa74c

Thanks again kalium99!

from createrepo_c.

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.