[libbluray-devel] [PATCH 2/4] The number of bytes used by fixed-length character fields is stored as Uint8 (ECMA 1/7.2.12).

Petri Hintukainen phintuka at users.sourceforge.net
Thu Jun 1 09:49:08 CEST 2017


ke, 2017-05-31 kello 12:33 +0200, Andreas Zelend kirjoitti:
> 
> 2017-05-31 10:29 GMT+02:00 Petri Hintukainen <phintuka at users.sourcefo
> rge.net>:
> > I didn't find any limitation for field length. Recorded string
> > length
> > is limited to 255 (because of it is stored in Uint8).
> > This would mean field length can be 256 (or even more if there's
> > padding) ?
> > 
> 
> That's right, the caller has to make sure that he uses the correct
> field length.

Field lengths are constants from specifications. Currently this is not
an issue, it just feels safer to write code that can handle all
possible values.

> I'll prepare another patch regarding off_t size problems.

in libudfread ?

off_t is used in only one file, maybe you can just define it to
uint64_t or something else. Or add native Windows API versions of the
remaining functions.

> btw do you plan to tag a release in the near future?

libudfread ?
We could tag 1.0.0, there haven't been much changes recently.

libbluray ?
Probably sooner than later, there's already a pile of fixes since
previous release.

> _______________________________________________
> libbluray-devel mailing list
> libbluray-devel at videolan.org
> https://mailman.videolan.org/listinfo/libbluray-devel


More information about the libbluray-devel mailing list