<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GooString wastes 4 bytes on 64-bit systems"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97506#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GooString wastes 4 bytes on 64-bit systems"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97506">bug 97506</a>
              from <span class="vcard"><a class="email" href="mailto:jakubkucharski97@gmail.com" title="Jakub Kucharski <jakubkucharski97@gmail.com>"> <span class="fn">Jakub Kucharski</span></a>
</span></b>
        <pre>(In reply to Albert Astals Cid from <a href="show_bug.cgi?id=97506#c4">comment #4</a>)
<span class="quote">> elf-dissector disagrees with your patch

> class GooString // location: /home/tsdgeos/devel/poppler/goo/GooString.h:49
> {
>     char[36] sStatic; // member offset: 0, size: 36, alignment: 1
>     int length; // member offset: 36, size: 4, alignment: 4
>     char* s; // member offset: 40, size: 8, alignment: 8
> }; // size: 48, alignment: 8
> Used bytes: 48/48 (100%)
> Used bits: 384/384 (100%)

> This is with your patch, GooString is now 48 bytes instead of 32. 

> but agrees with your bug (without the patch it says)

> class GooString // location: /home/tsdgeos/devel/poppler/goo/GooString.h:49
> {
>     char[16] sStatic; // member offset: 0, size: 16, alignment: 1
>     int length; // member offset: 16, size: 4, alignment: 4
>     // 4 byte(s) padding
>     char* s; // member offset: 24, size: 8, alignment: 8
> }; // size: 32, alignment: 8

> Used bytes: 28/32 (87.5%)
> Used bits: 224/256 (87.5%)</span >

Are you sure elf-dissector is right? I don't know this tool, but when I run
something with poppler with the above patch, it doesn't complain.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>