Comments (4)
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.
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.
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.
Fixed in commit 7efa74c
Thanks again kalium99!
from createrepo_c.
Related Issues (20)
- Undocumented change in python API HOT 6
- [1.0 breaking change] - consolidate compression options HOT 9
- [1.0 breaking change] - consolidate checksum options HOT 12
- Missing argument for RepomdRecord.fill() in Python documentation.
- [FIX] Build from 'master' branch is broken HOT 3
- `_XOPEN_SOURCE` define in `src/misc.c` seems extraneous
- Drop `--database` and `--no-database`, split?/drop `sqliterepo_c` HOT 5
- Sending SIGTERM to "createrepo_c --workers 2" sometimes leads to a crash HOT 6
- `--pkglist` can't be used with non-regular files
- Parsing primary.xml error: Start tag expected, '<' not found HOT 4
- heap buffer overflow and stack buffer overflow in test suite HOT 3
- Intermittent crash in `ci-dnf-stack/dnf-behave-tests/createrepo_c/zchunk.feature` HOT 1
- Python bindings fail to add the default version for sqlite records
- Has `--deltas` option been removed? HOT 9
- Brainstorm ways to shrink RPM metadata HOT 5
- Fix the building process to drop documentation for disabled features
- Newer createrepo_c doesn't generate comps readable EL7 HOT 27
- sqlite3_enable_shared_cache HOT 1
- `modifyrepo_c` and `mergerepo_c` generate `--no-pretty` metadata by default
- createrepo_c zstd compression doesn't fill in the content size, in the frame header. Python API problems. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from createrepo_c.