-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add racc * remove dependcy * Update bt2 master string patch. * Update userspace rcu version to 0.14.1 --------- Co-authored-by: Brice Videau <bvideau@Brices-MacBook-Pro.local> Co-authored-by: Brice Videau <brice.videau@gmail.com>
- Loading branch information
1 parent
ce04302
commit 59edbb1
Showing
8 changed files
with
81 additions
and
20 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
packages/babeltrace2/0001-Prevent-null-character-from-stopping-string-decoding.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
From d16b0c927b33d9ff24889c9dbde00e9186a010d7 Mon Sep 17 00:00:00 2001 | ||
From: Brice Videau <bvideau@Brices-MacBook-Pro.local> | ||
Date: Thu, 19 Sep 2024 15:48:08 -0500 | ||
Subject: [PATCH] Prevent null character from stopping string decoding. | ||
|
||
--- | ||
src/plugins/ctf/common/src/msg-iter.cpp | 33 +++---------------------- | ||
1 file changed, 3 insertions(+), 30 deletions(-) | ||
|
||
diff --git a/src/plugins/ctf/common/src/msg-iter.cpp b/src/plugins/ctf/common/src/msg-iter.cpp | ||
index 36e2088b8..fc4082998 100644 | ||
--- a/src/plugins/ctf/common/src/msg-iter.cpp | ||
+++ b/src/plugins/ctf/common/src/msg-iter.cpp | ||
@@ -748,41 +748,14 @@ void MsgIter::_handleBlobRawDataItem(const RawDataItem& item) | ||
|
||
void MsgIter::_handleStrRawDataItem(const RawDataItem& item) | ||
{ | ||
- if (_mHaveNullChar) { | ||
- /* No more text data */ | ||
- return; | ||
- } | ||
- | ||
if (_mCurStrFieldEncoding == StrEncoding::Utf8) { | ||
- /* Try to find the first U+0000 codepoint */ | ||
- const auto endIt = std::find(item.data().begin(), item.data().end(), 0); | ||
- _mHaveNullChar = endIt != item.data().end(); | ||
- | ||
/* Append to current string field */ | ||
this->_stackTopCurSubField().asString().append( | ||
- reinterpret_cast<const char *>(item.data().data()), endIt - item.data().begin()); | ||
+ reinterpret_cast<const char *>(item.data().data()), | ||
+ item.data().end() - item.data().begin()); | ||
} else { | ||
- /* Try to find the first U+0000 codepoint */ | ||
- auto endIt = item.data().end(); | ||
- const auto afterNullCpIt = bt2c::call([this, &item] { | ||
- if (_mCurStrFieldEncoding == StrEncoding::Utf16Be || | ||
- _mCurStrFieldEncoding == StrEncoding::Utf16Le) { | ||
- return _mUtf16NullCpFinder.findNullCp(item.data()); | ||
- } else { | ||
- BT_ASSERT_DBG(_mCurStrFieldEncoding == StrEncoding::Utf32Be || | ||
- _mCurStrFieldEncoding == StrEncoding::Utf32Le); | ||
- return _mUtf32NullCpFinder.findNullCp(item.data()); | ||
- } | ||
- }); | ||
- | ||
- if (afterNullCpIt) { | ||
- /* Found U+0000 */ | ||
- endIt = *afterNullCpIt; | ||
- _mHaveNullChar = true; | ||
- } | ||
- | ||
/* Append to current string buffer */ | ||
- _mStrBuf.insert(_mStrBuf.end(), item.data().begin(), endIt); | ||
+ _mStrBuf.insert(_mStrBuf.end(), item.data().begin(), item.data().end()); | ||
} | ||
} | ||
|
||
-- | ||
2.39.3 (Apple Git-146) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
|
||
class RubyRacc(RubyPackage): | ||
""" Racc is an LALR(1) parser generator. | ||
It is written in Ruby itself, and generates Ruby program.""" | ||
|
||
homepage = "https://rubygems.org/gems/racc" | ||
url = "https://rubygems.org/downloads/racc-1.8.1.gem" | ||
|
||
version('1.8.1', sha256='4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f', expand=False) | ||
|
||
depends_on('ruby@2.5.0:', type=('build', 'run')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters