+++ Shahbaz Youssefi [05/04/16 10:32 -0400]:
Note: CC me
I just read on lwn about the implementation of `%[` in sscanf. Just
wanted to point out my implementation (which supports `]` ranges (`-`)
and negation (`^`)) and let you know that you are free to take
code/inspiration from it:
https://gi
Note: CC me
I just read on lwn about the implementation of `%[` in sscanf. Just
wanted to point out my implementation (which supports `]` ranges (`-`)
and negation (`^`)) and let you know that you are free to take
code/inspiration from it:
https://github.com/ShabbyX/kio/blob/master/src/scanf.c#L3
+++ Andrew Morton [07/03/16 15:24 -0800]:
On Mon, 7 Mar 2016 18:12:20 -0500 Jessica Yu wrote:
+++ Jessica Yu [26/02/16 15:28 -0500]:
>+++ Jessica Yu [26/02/16 15:20 -0500]:
>>Implement basic character sets for the '%[' conversion specifier.
>>
>>The '%[' conversion specifier matches a nonempty
On Tue, Mar 08 2016, Andrew Morton wrote:
>> >
>> >Since this version is largely based on Rasmus' sample bitmap code
>> >(with only very minor tweaks), what is the best way to provide
>> >attribution in this case? A Suggested-by: tag or another
>> >Signed-off-by: tag (since actual code is involve
On Mon, 7 Mar 2016 18:12:20 -0500 Jessica Yu wrote:
> +++ Jessica Yu [26/02/16 15:28 -0500]:
> >+++ Jessica Yu [26/02/16 15:20 -0500]:
> >>Implement basic character sets for the '%[' conversion specifier.
> >>
> >>The '%[' conversion specifier matches a nonempty sequence of characters
> >>from th
+++ Jessica Yu [26/02/16 15:28 -0500]:
+++ Jessica Yu [26/02/16 15:20 -0500]:
Implement basic character sets for the '%[' conversion specifier.
The '%[' conversion specifier matches a nonempty sequence of characters
from the specified set of accepted (or with '^', rejected) characters
between t
+++ Rasmus Villemoes [03/03/16 00:49 +0100]:
On Fri, Feb 26 2016, Jessica Yu wrote:
@@ -2714,6 +2718,57 @@ int vsscanf(const char *buf, const char *fmt, va_list
args)
num++;
}
continue;
+ /*
+* Warning: This
On Fri, Feb 26 2016, Jessica Yu wrote:
> @@ -2714,6 +2718,57 @@ int vsscanf(const char *buf, const char *fmt, va_list
> args)
> num++;
> }
> continue;
> + /*
> + * Warning: This implementation of the '[' conversion specif
+++ Jessica Yu [26/02/16 15:20 -0500]:
Implement basic character sets for the '%[' conversion specifier.
The '%[' conversion specifier matches a nonempty sequence of characters
from the specified set of accepted (or with '^', rejected) characters
between the brackets. The substring matched is to
Implement basic character sets for the '%[' conversion specifier.
The '%[' conversion specifier matches a nonempty sequence of characters
from the specified set of accepted (or with '^', rejected) characters
between the brackets. The substring matched is to be made up of characters
in (or not in)
+++ Rasmus Villemoes [23/02/16 23:47 +0100]:
On Tue, Feb 23 2016, Jessica Yu wrote:
Implement basic character sets for the '%[]' conversion specifier.
lib/vsprintf.c | 41 +
1 file changed, 41 insertions(+)
diff --git a/lib/vsprintf.c b/lib/vsprintf.
On Wed, 24 Feb 2016 00:13:47 -0500 Jessica Yu wrote:
> >> This patch adds support for the '%[' conversion specifier for sscanf().
> >> This is useful in cases where we'd like to match substrings delimited by
> >> something other than spaces. The original motivation for this patch
> >> actually ca
+++ Andrew Morton [23/02/16 14:05 -0800]:
On Tue, 23 Feb 2016 15:38:22 -0500 Jessica Yu wrote:
Implement basic character sets for the '%[]' conversion specifier.
The '%[]' conversion specifier matches a nonempty sequence of characters
from the specified set of accepted (or with '^', rejected)
On Tue, Feb 23 2016, Rasmus Villemoes wrote:
> On that note, it seems that your field width handling is off-by-one.
Sorry about that, it's me who's off-by-one.
Rasmus
> To get rid of the allocation, why not use a small bitmap? Something like
>
> {
> char *s = (char *)va_arg(args, char *);
>
On Tue, Feb 23 2016, Jessica Yu wrote:
> Implement basic character sets for the '%[]' conversion specifier.
>
>
> lib/vsprintf.c | 41 +
> 1 file changed, 41 insertions(+)
>
> diff --git a/lib/vsprintf.c b/lib/vsprintf.c
> index 525c8e1..983358a 100644
> -
On Tue, 23 Feb 2016 15:38:22 -0500 Jessica Yu wrote:
> Implement basic character sets for the '%[]' conversion specifier.
>
> The '%[]' conversion specifier matches a nonempty sequence of characters
> from the specified set of accepted (or with '^', rejected) characters
> between the brackets. T
On Tue, Feb 23, 2016 at 12:38 PM, Jessica Yu wrote:
> Implement basic character sets for the '%[]' conversion specifier.
>
> The '%[]' conversion specifier matches a nonempty sequence of characters
> from the specified set of accepted (or with '^', rejected) characters
> between the brackets. The
Implement basic character sets for the '%[]' conversion specifier.
The '%[]' conversion specifier matches a nonempty sequence of characters
from the specified set of accepted (or with '^', rejected) characters
between the brackets. The substring matched is to be made up of characters
in (or not in
+++ Kees Cook [23/02/16 11:00 -0800]:
On Tue, Feb 23, 2016 at 2:56 AM, Andy Shevchenko
wrote:
On Mon, 2016-02-22 at 16:24 -0500, Jessica Yu wrote:
Implement basic character sets for the '%[]' conversion specifier.
What part of the kernel will be using this feature, by the way?
I explained
+++ Andy Shevchenko [23/02/16 12:56 +0200]:
On Mon, 2016-02-22 at 16:24 -0500, Jessica Yu wrote:
Implement basic character sets for the '%[]' conversion specifier.
The '%[]' conversion specifier matches a nonempty sequence of
characters
from the specified set of accepted (or with '^', rejected)
On Tue, Feb 23, 2016 at 2:56 AM, Andy Shevchenko
wrote:
> On Mon, 2016-02-22 at 16:24 -0500, Jessica Yu wrote:
>> Implement basic character sets for the '%[]' conversion specifier.
What part of the kernel will be using this feature, by the way?
-Kees
--
Kees Cook
Chrome OS & Brillo Security
On Mon, 2016-02-22 at 16:24 -0500, Jessica Yu wrote:
> Implement basic character sets for the '%[]' conversion specifier.
>
> The '%[]' conversion specifier matches a nonempty sequence of
> characters
> from the specified set of accepted (or with '^', rejected) characters
> between the brackets. T
Implement basic character sets for the '%[]' conversion specifier.
The '%[]' conversion specifier matches a nonempty sequence of characters
from the specified set of accepted (or with '^', rejected) characters
between the brackets. The substring matched is to be made up of characters
in (or not in
+++ Andy Shevchenko [22/02/16 12:13 +0200]:
On Fri, 2016-02-19 at 20:22 -0500, Jessica Yu wrote:
Implement basic character sets for the '%[]' conversion specifier.
The '%[]' conversion specifier matches a nonempty sequence of
characters
from the specified set of accepted (or with '^', rejected)
On Fri, 2016-02-19 at 20:22 -0500, Jessica Yu wrote:
> Implement basic character sets for the '%[]' conversion specifier.
>
> The '%[]' conversion specifier matches a nonempty sequence of
> characters
> from the specified set of accepted (or with '^', rejected) characters
> between the brackets. T
Implement basic character sets for the '%[]' conversion specifier.
The '%[]' conversion specifier matches a nonempty sequence of characters
from the specified set of accepted (or with '^', rejected) characters
between the brackets. The substring matched is to be made up of characters
in (or not in
26 matches
Mail list logo